aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/theme/ThemeManagementDialog.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/theme/ThemeManagementDialog.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/theme/ThemeManagementDialog.cpp')
-rw-r--r--src/modules/theme/ThemeManagementDialog.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/theme/ThemeManagementDialog.cpp b/src/modules/theme/ThemeManagementDialog.cpp
index e6ca012a6..a5eb66db8 100644
--- a/src/modules/theme/ThemeManagementDialog.cpp
+++ b/src/modules/theme/ThemeManagementDialog.cpp
@@ -408,7 +408,15 @@ void ThemeManagementDialog::installFromFile()
QString szFileName;
QString szError;
- if(!KviFileDialog::askForOpenFileName(szFileName,__tr2qs_ctx("Open Theme - KVIrc","theme"),QString(),KVI_FILTER_THEME))
+ if(!KviFileDialog::askForOpenFileName(
+ szFileName,
+ __tr2qs_ctx("Open Theme - KVIrc","theme"),
+ QString(),
+ KVI_FILTER_THEME,
+ false,
+ true,
+ this)
+ )
return;
if(!ThemeFunctions::installThemePackage(szFileName,szError,this))
{