Mercurial > octave
changeset 16510:e22604d4bf85
* files-dock-widget.cc(constructor): initial dir is where octave was started
author | Torsten <ttl@justmail.de> |
---|---|
date | Sat, 13 Apr 2013 08:26:56 +0200 |
parents | 14045b872a3d |
children | eee1b78d031f |
files | libgui/src/files-dock-widget.cc |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/files-dock-widget.cc Fri Apr 12 21:51:59 2013 -0400 +++ b/libgui/src/files-dock-widget.cc Sat Apr 13 08:26:56 2013 +0200 @@ -104,12 +104,12 @@ // TODO: Add other buttons for creating directories - // Create the QFileSystemModel starting in the home directory - QString homePath = QDir::homePath (); - + // Create the QFileSystemModel starting in the actual directory + QDir curr_dir; _file_system_model = new QFileSystemModel (this); _file_system_model->setFilter (QDir::NoDotAndDotDot | QDir::AllEntries); - QModelIndex rootPathIndex = _file_system_model->setRootPath (homePath); + QModelIndex rootPathIndex = _file_system_model->setRootPath ( + curr_dir.absolutePath ()); // Attach the model to the QTreeView and set the root index _file_tree_view = new QTreeView (container);