From ffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sat, 5 Mar 2011 03:13:09 +0000 Subject: Fix #1102 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5534 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/toolbareditor/CustomizeToolBarsDialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/toolbareditor/CustomizeToolBarsDialog.cpp') diff --git a/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp b/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp index f5e7aed1e..2d80dba87 100644 --- a/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp +++ b/src/modules/toolbareditor/CustomizeToolBarsDialog.cpp @@ -364,8 +364,8 @@ void CustomizeToolBarsDialog::currentToolBarChanged() void CustomizeToolBarsDialog::showEvent(QShowEvent * e) { - QRect rect = g_pApp->desktop()->screenGeometry(g_pApp->desktop()->primaryScreen()); - move((rect.width() - width())/2,(rect.height() - height())/2); + QRect rect = g_pApp->desktop()->screenGeometry(g_pMainWindow); + move(rect.x() + ((rect.width() - width())/2),rect.y() + ((rect.height() - height())/2)); QWidget::showEvent(e); } -- cgit v1.3.1-10-gc9f91