summaryrefslogtreecommitdiff
path: root/src/gui/windows/editserverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 01:33:58 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:19 +0300
commit9cbca4642e49aadb3e5e6b6055261590d754629d (patch)
tree0bd2b26926e079f209fa2d023530c416de3c64c4 /src/gui/windows/editserverdialog.cpp
parent031a455d23a5b04bb2bcd32e43a946fd60be7c6a (diff)
downloadmanaverse-9cbca4642e49aadb3e5e6b6055261590d754629d.tar.gz
manaverse-9cbca4642e49aadb3e5e6b6055261590d754629d.tar.bz2
manaverse-9cbca4642e49aadb3e5e6b6055261590d754629d.tar.xz
manaverse-9cbca4642e49aadb3e5e6b6055261590d754629d.zip
move virtual member calls from editserverdialog constuctor into postInit.
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();