aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/RawEditorWindow.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-08-25 00:03:57 +0200
committerGravatar Szymon Tomasz Stefanek2015-08-25 00:03:57 +0200
commitef82394b6f9a63dd23ecedfd107b477267e0d2f9 (patch)
tree0602527993c91cc38169600b7a8022b5ba848a58 /src/modules/raweditor/RawEditorWindow.cpp
parentRevert release name from Quasar to Aria (diff)
downloadKVIrc-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/RawEditorWindow.cpp')
-rw-r--r--src/modules/raweditor/RawEditorWindow.cpp4
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))
{