From ef82394b6f9a63dd23ecedfd107b477267e0d2f9 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Tue, 25 Aug 2015 00:03:57 +0200 Subject: 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. --- src/modules/logview/LogViewWindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/modules/logview/LogViewWindow.cpp') 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 -- cgit v1.3.1-10-gc9f91