Mercurial > hg > octave-shane
changeset 16709:1070f2ca1367
fix searching new directory for file browser
* files-dock-widget.cc(popdownmenu_search_dir): start searching in current
browser directory and set browser directory instead of octave directory
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 31 May 2013 20:54:59 +0200 |
parents | 08f0f274de36 |
children | 00db1d7312bb |
files | libgui/src/files-dock-widget.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/files-dock-widget.cc +++ b/libgui/src/files-dock-widget.cc @@ -633,9 +633,9 @@ void files_dock_widget::popdownmenu_search_dir (bool) { - QString dir - = QFileDialog::getExistingDirectory (this, tr ("Set directory of file browser")); - process_set_current_dir (dir); + QString dir = QFileDialog::getExistingDirectory + (this, tr ("Set directory of file browser"),_file_system_model->rootPath()); + set_current_directory (dir); } void