summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index 1c960b11c..d99b973b3 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -188,8 +188,6 @@ CharSelectDialog::CharSelectDialog(LoginData *const data):
}
addKeyListener(this);
center();
- setVisible(true);
- requestFocus();
Net::getCharServerHandler()->setCharSelectDialog(this);
mCharacterView->show(0);
@@ -201,6 +199,12 @@ CharSelectDialog::~CharSelectDialog()
Net::getCharServerHandler()->clear();
}
+void CharSelectDialog::postInit()
+{
+ setVisible(true);
+ requestFocus();
+}
+
void CharSelectDialog::action(const gcn::ActionEvent &event)
{
// Check if a button of a character was pressed