aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/logview/LogViewWindow.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/logview/LogViewWindow.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/logview/LogViewWindow.cpp')
-rw-r--r--src/modules/logview/LogViewWindow.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/logview/LogViewWindow.cpp b/src/modules/logview/LogViewWindow.cpp
index 8c6f6b5e4..2c24bbdb3 100644
--- a/src/modules/logview/LogViewWindow.cpp
+++ b/src/modules/logview/LogViewWindow.cpp
@@ -592,7 +592,15 @@ void LogViewWindow::createLog(LogFile * pLog, int iId, QString * pszFile)
KviFileUtils::adjustFilePath(szLog);
// Getting output file path from the user, with overwrite confirmation
- if(!KviFileDialog::askForSaveFileName(szLog, __tr2qs_ctx("Export Log - KVIrc","log"), szLog, NULL, false, true))
+ if(!KviFileDialog::askForSaveFileName(
+ szLog,
+ __tr2qs_ctx("Export Log - KVIrc","log"),
+ szLog,
+ QString(),
+ false,
+ true,
+ true,
+ this))
return;
/* Save export directory - this directory path is also used in the HTML export