diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-14 14:00:06 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-01-15 00:23:19 +0100 |
commit | 3567d27ac0a472c90644ea643b48f7e85c767118 (patch) | |
tree | c24281c6f1656cd98afe92439a5fa39dcaca1c06 /src/gui/skilldialog.cpp | |
parent | 0abe26e7665a52440cf1ba0a5145f81f066e9ac3 (diff) | |
download | mana-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/skilldialog.cpp')
-rw-r--r-- | src/gui/skilldialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp index f01edd98..e9f91a00 100644 --- a/src/gui/skilldialog.cpp +++ b/src/gui/skilldialog.cpp @@ -233,7 +233,7 @@ SkillDialog::SkillDialog(): place(0, 5, mPointsLabel, 4); place(4, 5, mIncreaseButton); - setLocationRelativeTo(getParent()); + center(); loadWindowState(); } |