summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/worldselectdialog.cpp4
-rw-r--r--src/gui/windows/worldselectdialog.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index 3d9581164..b3686ee10 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -120,6 +120,10 @@ WorldSelectDialog::WorldSelectDialog(Worlds worlds):
addKeyListener(this);
center();
+}
+
+void WorldSelectDialog::postInit()
+{
setVisible(true);
mChooseWorld->requestFocus();
}
diff --git a/src/gui/windows/worldselectdialog.h b/src/gui/windows/worldselectdialog.h
index d3107a807..6afaa25c8 100644
--- a/src/gui/windows/worldselectdialog.h
+++ b/src/gui/windows/worldselectdialog.h
@@ -52,6 +52,8 @@ class WorldSelectDialog final : public Window, public gcn::ActionListener,
A_DELETE_COPY(WorldSelectDialog)
+ void postInit() override;
+
/**
* Destructor.
*/