diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:05:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:05:09 +0300 |
commit | 95fefc5521f231ab6bf3119d768a3681ee5e3050 (patch) | |
tree | 0140d146009aed33c274f246a9a84499ef683c9a /src/gui | |
parent | da72060e41c6e10e78eef1bbc740ad7bdfccf5cc (diff) | |
download | plus-95fefc5521f231ab6bf3119d768a3681ee5e3050.tar.gz plus-95fefc5521f231ab6bf3119d768a3681ee5e3050.tar.bz2 plus-95fefc5521f231ab6bf3119d768a3681ee5e3050.tar.xz plus-95fefc5521f231ab6bf3119d768a3681ee5e3050.zip |
Use CREATEWIDGET macro in itemamountwindow.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |