diff options
| author | 2015-08-25 00:03:57 +0200 | |
|---|---|---|
| committer | 2015-08-25 00:03:57 +0200 | |
| commit | ef82394b6f9a63dd23ecedfd107b477267e0d2f9 (patch) | |
| tree | 0602527993c91cc38169600b7a8022b5ba848a58 /src/modules/addon | |
| parent | Revert release name from Quasar to Aria (diff) | |
| download | KVIrc-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/addon')
| -rw-r--r-- | src/modules/addon/AddonManagementDialog.cpp | 2 | ||||
| -rw-r--r-- | src/modules/addon/libkviaddon.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/addon/AddonManagementDialog.cpp b/src/modules/addon/AddonManagementDialog.cpp index c8c9a0acb..2afc0f68e 100644 --- a/src/modules/addon/AddonManagementDialog.cpp +++ b/src/modules/addon/AddonManagementDialog.cpp @@ -306,7 +306,7 @@ void AddonManagementDialog::installScript() if(!KviFileDialog::askForOpenFileName( szFileName, __tr2qs_ctx("Please select the addon installation file","addon"), - QString(),KVI_FILTER_ADDON,false,true + QString(),KVI_FILTER_ADDON,false,true,this )) return; szFileName.replace("\\","\\\\"); diff --git a/src/modules/addon/libkviaddon.cpp b/src/modules/addon/libkviaddon.cpp index 1d82ca64f..4aefa59a0 100644 --- a/src/modules/addon/libkviaddon.cpp +++ b/src/modules/addon/libkviaddon.cpp @@ -39,9 +39,9 @@ #include "kvi_sourcesdate.h" #include "KviMiscUtils.h" #include "KviFileUtils.h" -#include "KviFileDialog.h" #include <QFileInfo> +#include <QDir> QRect g_rectManagementDialogGeometry(0,0,0,0); |
