# HG changeset patch # User Torsten # Date 1390656636 -3600 # Node ID 226285bce729942fe9a5dffb1841d242eae05a52 # Parent f1312db94896484fd981c5ee1356940f9887a38c context menu open in the file browser really opens the file * file-docks-widget (contextmenu_open): instead of initiating the default action for the file (via item_double_clicked, e.g. load the file), really open the file as desired diff -r f1312db94896 -r 226285bce729 libgui/src/files-dock-widget.cc --- a/libgui/src/files-dock-widget.cc Sat Jan 25 13:51:25 2014 +0100 +++ b/libgui/src/files-dock-widget.cc Sat Jan 25 14:30:36 2014 +0100 @@ -531,7 +531,14 @@ for ( QModelIndexList::iterator it = rows.begin (); it != rows.end (); it++) { - item_double_clicked (*it); + QFileInfo file = _file_system_model->fileInfo (*it); + if (file.exists ()) + { + if (file.isFile ()) + emit open_file (file.absoluteFilePath ()); + else + set_current_directory (file.absoluteFilePath ()); + } } }