aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/popupeditor/PopupEditorWindow.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/popupeditor/PopupEditorWindow.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/popupeditor/PopupEditorWindow.cpp')
-rw-r--r--src/modules/popupeditor/PopupEditorWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/popupeditor/PopupEditorWindow.cpp b/src/modules/popupeditor/PopupEditorWindow.cpp
index dcdea254a..e8435ae5f 100644
--- a/src/modules/popupeditor/PopupEditorWindow.cpp
+++ b/src/modules/popupeditor/PopupEditorWindow.cpp
@@ -1183,7 +1183,7 @@ void PopupEditorWidget::exportCurrentPopup()
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;
m_pLastEditedItem->popup()->generateDefPopup(szOut);
@@ -1234,7 +1234,7 @@ void PopupEditorWidget::exportPopups(bool bSelectedOnly)
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))
{