summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/questswindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index 608d84954..144f9b3d0 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -37,6 +37,7 @@
#include "gui/widgets/browserbox.h"
#include "gui/widgets/button.h"
#include "gui/widgets/containerplacer.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/layouttype.h"
#include "gui/widgets/extendedlistbox.h"
@@ -65,8 +66,8 @@ QuestsWindow::QuestsWindow() :
Window(_("Quests"), Modal_false, nullptr, "quests.xml"),
ActionListener(),
mQuestsModel(new QuestsModel),
- mQuestsListBox(new ExtendedListBox(this,
- mQuestsModel, "extendedlistbox.xml")),
+ mQuestsListBox(CREATEWIDGETR(ExtendedListBox,
+ this, mQuestsModel, "extendedlistbox.xml")),
mQuestScrollArea(new ScrollArea(this, mQuestsListBox,
getOptionBool("showlistbackground"), "quests_list_background.xml")),
mItemLinkHandler(new ItemLinkHandler),
@@ -87,8 +88,6 @@ QuestsWindow::QuestsWindow() :
mCompleteQuestEffectId(paths.getIntValue("completeQuestEffectId")),
mMap(nullptr)
{
- mQuestsListBox->postInit();
-
setWindowName("Quests");
setResizable(true);
setCloseButton(true);