summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 19:51:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 19:51:26 +0300
commitccf9c1d17bef7457bb7842e42c7a70a539454d03 (patch)
treed353561aac09dbfb1f5c84ddd7d05f5deb2a5409 /src/gui
parentcb7c18ed3dc3c53621dfe8debe14938a640e43db (diff)
downloadmanaplus-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.gz
manaplus-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.bz2
manaplus-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.xz
manaplus-ccf9c1d17bef7457bb7842e42c7a70a539454d03.zip
Use CREATEWIDGET macro in npcselldialog.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/npcselldialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/npcselldialog.cpp b/src/gui/windows/npcselldialog.cpp
index c1fdbe259..2645f4798 100644
--- a/src/gui/windows/npcselldialog.cpp
+++ b/src/gui/windows/npcselldialog.cpp
@@ -28,6 +28,7 @@
#include "gui/models/shopitems.h"
+#include "gui/widgets/createwidget.h"
#include "gui/widgets/shoplistbox.h"
#include "gui/widgets/slider.h"
@@ -62,7 +63,7 @@ void NpcSellDialog::sellAction(const ActionEvent &event)
const ItemInfo &info = ItemDB::get(item->getId());
if (info.isProtected())
{
- ConfirmDialog *const dialog = new ConfirmDialog(
+ ConfirmDialog *const dialog = CREATEWIDGETR(ConfirmDialog,
// TRANSLATORS: sell confirmation header
_("sell item"),
// TRANSLATORS: sell confirmation message
@@ -71,7 +72,6 @@ void NpcSellDialog::sellAction(const ActionEvent &event)
SOUND_REQUEST,
false,
Modal_true);
- dialog->postInit();
dialog->addActionListener(this);
return;
}