diff options
| author | 2011-03-05 03:13:09 +0000 | |
|---|---|---|
| committer | 2011-03-05 03:13:09 +0000 | |
| commit | ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb (patch) | |
| tree | 2dd524c74f95787af3fdc64d57a92b7694f8bf96 /src/modules/addon/managementdialog.cpp | |
| parent | Fix #1103 (diff) | |
| download | KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.tar.gz KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.tar.bz2 KVIrc-ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb.zip | |
Fix #1102
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5534 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon/managementdialog.cpp')
| -rw-r--r-- | src/modules/addon/managementdialog.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/addon/managementdialog.cpp b/src/modules/addon/managementdialog.cpp index 460463cff..d2a70110b 100644 --- a/src/modules/addon/managementdialog.cpp +++ b/src/modules/addon/managementdialog.cpp @@ -182,8 +182,9 @@ AddonManagementDialog::AddonManagementDialog(QWidget * p) } resize(g_rectManagementDialogGeometry.width(), g_rectManagementDialogGeometry.height()); - move(g_rectManagementDialogGeometry.x(), - g_rectManagementDialogGeometry.y()); + + QRect rect = g_pApp->desktop()->screenGeometry(g_pMainWindow); + move(rect.x() + ((rect.width() - g_rectManagementDialogGeometry.width())/2),rect.y() + ((rect.height() - g_rectManagementDialogGeometry.height())/2)); } AddonManagementDialog::~AddonManagementDialog() @@ -319,14 +320,6 @@ void AddonManagementDialog::installScript() //m_pListWidget->triggerUpdate(); } -void AddonManagementDialog::showEvent(QShowEvent * e) -{ - QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen()); - move((rect.width() - width())/2,(rect.height() - height())/2); - - QWidget::showEvent(e); -} - void AddonManagementDialog::closeClicked() { delete this; |
