Mercurial > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
16911:5ea6a6d2b83f | 16912:6bd74153c3ae |
---|---|
174 // pass a signal to. Hence, functionality is here. | 174 // pass a signal to. Hence, functionality is here. |
175 | 175 |
176 // Create a NonModal message. | 176 // Create a NonModal message. |
177 QFileDialog *fileDialog = new QFileDialog (this); | 177 QFileDialog *fileDialog = new QFileDialog (this); |
178 fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)")); | 178 fileDialog->setNameFilter (tr ("Octave Files (*.m);;All Files (*)")); |
179 | |
180 // Giving trouble under KDE (problem is related to Qt signal handling on unix, | |
181 // see https://bugs.kde.org/show_bug.cgi?id=260719 , | |
182 // it had/has no effect on Windows, though) | |
183 fileDialog->setOption(QFileDialog::DontUseNativeDialog, true); | |
184 | |
179 fileDialog->setAcceptMode (QFileDialog::AcceptOpen); | 185 fileDialog->setAcceptMode (QFileDialog::AcceptOpen); |
180 fileDialog->setViewMode (QFileDialog::Detail); | 186 fileDialog->setViewMode (QFileDialog::Detail); |
181 fileDialog->setDirectory (ced); | 187 fileDialog->setDirectory (ced); |
182 | 188 |
183 connect (fileDialog, SIGNAL (fileSelected (const QString&)), | 189 connect (fileDialog, SIGNAL (fileSelected (const QString&)), |