aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/reguser/wizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/reguser/wizard.cpp')
-rw-r--r--src/modules/reguser/wizard.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/reguser/wizard.cpp b/src/modules/reguser/wizard.cpp
index fd70a99a6..0eda4b26b 100644
--- a/src/modules/reguser/wizard.cpp
+++ b/src/modules/reguser/wizard.cpp
@@ -397,7 +397,9 @@ void KviRegistrationWizard::accept()
void KviRegistrationWizard::showEvent(QShowEvent *e)
{
if(height() < 420)resize(width(),420);
- move((g_pApp->desktop()->width() - width())/2,(g_pApp->desktop()->height() - height())/2);
+
+ QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen());
+ move((rect.width() - width())/2,(rect.height() - height())/2);
KviTalWizard::showEvent(e);
}