diff options
Diffstat (limited to 'src/modules/toolbareditor/CustomizeToolBarsDialog.cpp')
| -rw-r--r-- | src/modules/toolbareditor/CustomizeToolBarsDialog.cpp | 4 |
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); } |
