summaryrefslogtreecommitdiff
path: root/src/gui/quitdialog.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-14 14:00:06 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-15 00:23:19 +0100
commit3567d27ac0a472c90644ea643b48f7e85c767118 (patch)
treec24281c6f1656cd98afe92439a5fa39dcaca1c06 /src/gui/quitdialog.cpp
parent0abe26e7665a52440cf1ba0a5145f81f066e9ac3 (diff)
downloadmana-3567d27ac0a472c90644ea643b48f7e85c767118.tar.gz
mana-3567d27ac0a472c90644ea643b48f7e85c767118.tar.bz2
mana-3567d27ac0a472c90644ea643b48f7e85c767118.tar.xz
mana-3567d27ac0a472c90644ea643b48f7e85c767118.zip
Center the CustomServerDialog on its parent window
Also shortened the title of the Custom Server dialog to "Custom Server" since it is also used for editing an existing custom server and not just for adding a new one. And used Window::center() in a bunch of places just to reduce code size. Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/gui/quitdialog.cpp')
-rw-r--r--src/gui/quitdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index 3da07206..c06fdfc2 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -82,7 +82,7 @@ QuitDialog::QuitDialog(QuitDialog** pointerToMe):
place(2, 0, mCancelButton);
reflowLayout(150, 0);
- setLocationRelativeTo(getParent());
+ center();
setVisible(true);
requestModalFocus();
mOkButton->requestFocus();