From 95fefc5521f231ab6bf3119d768a3681ee5e3050 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 19:05:09 +0300 Subject: Use CREATEWIDGET macro in itemamountwindow. --- src/gui/windows/itemamountwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp index 61e48ab5f..07c7d52a1 100644 --- a/src/gui/windows/itemamountwindow.cpp +++ b/src/gui/windows/itemamountwindow.cpp @@ -41,6 +41,7 @@ #include "gui/widgets/button.h" #include "gui/widgets/containerplacer.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/dropdown.h" #include "gui/widgets/icon.h" #include "gui/widgets/inttextfield.h" @@ -437,5 +438,5 @@ void ItemAmountWindow::showWindow(const Usage usage, Window *const parent, if (usage != ShopBuyAdd && usage != ShopSellAdd && maxRange <= 1) finish(item, maxRange, 0, usage); else - (new ItemAmountWindow(usage, parent, item, maxRange))->postInit(); + CREATEWIDGET(ItemAmountWindow, usage, parent, item, maxRange); } -- cgit v1.2.3-70-g09d2