summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/worldselectdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/worldselectdialog.cpp b/src/gui/windows/worldselectdialog.cpp
index 3fc06293d..58078dfbc 100644
--- a/src/gui/windows/worldselectdialog.cpp
+++ b/src/gui/windows/worldselectdialog.cpp
@@ -26,6 +26,7 @@
#include "settings.h"
#include "gui/widgets/button.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/listbox.h"
#include "gui/widgets/scrollarea.h"
@@ -47,13 +48,12 @@ WorldSelectDialog::WorldSelectDialog(Worlds worlds) :
ActionListener(),
KeyListener(),
mWorldListModel(new WorldListModel(worlds)),
- mWorldList(new ListBox(this, mWorldListModel, "")),
+ mWorldList(CREATEWIDGETR(ListBox, this, mWorldListModel, "")),
// TRANSLATORS: world dialog button
mChangeLoginButton(new Button(this, _("Change Login"), "login", this)),
// TRANSLATORS: world dialog button
mChooseWorld(new Button(this, _("Choose World"), "world", this))
{
- mWorldList->postInit();
ScrollArea *const worldsScroll = new ScrollArea(this, mWorldList,
getOptionBool("showbackground"), "world_background.xml");