Mercurial > octave-nkf
diff libgui/src/m-editor/file-editor.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 | 944ade6e7f66 |
children | 78116b88dbf5 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc Sat Jul 06 14:17:30 2013 -0400 +++ b/libgui/src/m-editor/file-editor.cc Sun Jul 07 19:07:23 2013 +0200 @@ -176,6 +176,12 @@ // Create a NonModal message. QFileDialog *fileDialog = new QFileDialog (this); fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)")); + + // 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); + fileDialog->setAcceptMode (QFileDialog::AcceptOpen); fileDialog->setViewMode (QFileDialog::Detail); fileDialog->setDirectory (ced);