Mercurial > hg > octave-nkf
diff libgui/src/m-editor/file-editor-tab.cc @ 16912:6bd74153c3ae
no native dialogs to prevent hangs in KDE (patch #7948 by Andre da Costa Barros)
* main-window.cc(handle_save_workspace_request,handle_load_workspace_request,
browse_for_directory): open the dialogs as qt instead native dialogs
* file-editor.cc(request_open_file): configure the file dialog not being native
* file-editor-tab.cc(save_file_as): configure the file dialog not being native
* files-Dock-widget.cc(popdownmenu_search_dir): search dir dialog not native
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 07 Jul 2013 19:07:23 +0200 |
parents | 35d9f1f79f06 |
children | 811019b9ef57 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -1010,6 +1010,11 @@ else fileDialog = new QFileDialog (this); + // Giving trouble under KDE (problem is related to Qt signal handling on unix, + // see https://bugs.kde.org/show_bug.cgi?id=260719 , + // it had/has no effect on Windows, though) + fileDialog->setOption(QFileDialog::DontUseNativeDialog, true); + if (!_file_name.isEmpty () && _file_name.at (_file_name.count () - 1) != '/') { fileDialog->selectFile (_file_name);