From 3567d27ac0a472c90644ea643b48f7e85c767118 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 14 Jan 2012 14:00:06 +0100 Subject: 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 --- src/gui/customserverdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/customserverdialog.cpp') 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(); -- cgit v1.2.3-70-g09d2