summaryrefslogtreecommitdiff
path: root/src/gui/windows/editserverdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r--src/gui/windows/editserverdialog.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 2a6814525..1aafa11f0 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -185,9 +185,6 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
}
setLocationRelativeTo(getParentWindow());
- setVisible(true);
-
- mNameField->requestFocus();
}
EditServerDialog::~EditServerDialog()
@@ -195,6 +192,12 @@ EditServerDialog::~EditServerDialog()
delete mTypeListModel;
}
+void EditServerDialog::postInit()
+{
+ setVisible(true);
+ mNameField->requestFocus();
+}
+
void EditServerDialog::action(const gcn::ActionEvent &event)
{
const std::string &eventId = event.getId();