aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/toolbareditor
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-03-05 03:13:09 +0000
committerGravatar Szymon Tomasz Stefanek2011-03-05 03:13:09 +0000
commitffb2e06d377851d36cf3cbe09b6a2f566bdfc0cb (patch)
tree2dd524c74f95787af3fdc64d57a92b7694f8bf96 /src/modules/toolbareditor
parentFix #1103 (diff)
downloadKVIrc-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/toolbareditor')
-rw-r--r--src/modules/toolbareditor/CustomizeToolBarsDialog.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}