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/customserverdialog.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/customserverdialog.cpp')
-rw-r--r-- | src/gui/customserverdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/customserverdialog.cpp b/src/gui/customserverdialog.cpp index 5376248a..58099599 100644 --- a/src/gui/customserverdialog.cpp +++ b/src/gui/customserverdialog.cpp @@ -45,7 +45,7 @@ std::string TypeListModel::getElementAt(int elementIndex) } CustomServerDialog::CustomServerDialog(ServerDialog *parent, int index): - Window(_("Add a custom Server"), true, parent), + Window(_("Custom Server"), true, parent), mServerDialog(parent), mIndex(index) { @@ -123,6 +123,7 @@ CustomServerDialog::CustomServerDialog(ServerDialog *parent, int index): ServerInfo::TMWATHENA); } + setLocationRelativeTo(getParentWindow()); setVisible(true); mNameField->requestFocus(); |