diff options
| author | 2015-08-25 00:03:57 +0200 | |
|---|---|---|
| committer | 2015-08-25 00:03:57 +0200 | |
| commit | ef82394b6f9a63dd23ecedfd107b477267e0d2f9 (patch) | |
| tree | 0602527993c91cc38169600b7a8022b5ba848a58 /src/modules/raweditor | |
| parent | Revert release name from Quasar to Aria (diff) | |
| download | KVIrc-ef82394b6f9a63dd23ecedfd107b477267e0d2f9.tar.gz KVIrc-ef82394b6f9a63dd23ecedfd107b477267e0d2f9.tar.bz2 KVIrc-ef82394b6f9a63dd23ecedfd107b477267e0d2f9.zip | |
File dialogs seem to always require a parent. Without it Qt5 enters in a kind of modal loop that prevents user from interacting with the whole application.
Diffstat (limited to 'src/modules/raweditor')
| -rw-r--r-- | src/modules/raweditor/RawEditorWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/raweditor/RawEditorWindow.cpp b/src/modules/raweditor/RawEditorWindow.cpp index 28bca8cc6..4ac5d2efa 100644 --- a/src/modules/raweditor/RawEditorWindow.cpp +++ b/src/modules/raweditor/RawEditorWindow.cpp @@ -416,7 +416,7 @@ void RawEditorWidget::exportCurrentHandler() QString szFile; - if(!KviFileDialog::askForSaveFileName(szFile,__tr2qs_ctx("Choose a Filename - KVIrc","editor"),szName,KVI_FILTER_SCRIPT,true,true,true))return; + if(!KviFileDialog::askForSaveFileName(szFile,__tr2qs_ctx("Choose a Filename - KVIrc","editor"),szName,KVI_FILTER_SCRIPT,true,true,true,this))return; QString szOut; getExportEventBuffer(szOut,m_pLastEditedItem); @@ -454,7 +454,7 @@ void RawEditorWidget::exportAllEvents() QString szFile; - if(!KviFileDialog::askForSaveFileName(szFile,__tr2qs_ctx("Choose a Filename - KVIrc","editor"),szName,KVI_FILTER_SCRIPT,true,true,true))return; + if(!KviFileDialog::askForSaveFileName(szFile,__tr2qs_ctx("Choose a Filename - KVIrc","editor"),szName,KVI_FILTER_SCRIPT,true,true,true,this))return; if(!KviFileUtils::writeFile(szFile,out)) { |
