aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/managementdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/addon/managementdialog.cpp')
-rw-r--r--src/modules/addon/managementdialog.cpp13
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;