diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:51:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 19:51:26 +0300 |
commit | ccf9c1d17bef7457bb7842e42c7a70a539454d03 (patch) | |
tree | d353561aac09dbfb1f5c84ddd7d05f5deb2a5409 /src | |
parent | cb7c18ed3dc3c53621dfe8debe14938a640e43db (diff) | |
download | manaverse-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.gz manaverse-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.bz2 manaverse-ccf9c1d17bef7457bb7842e42c7a70a539454d03.tar.xz manaverse-ccf9c1d17bef7457bb7842e42c7a70a539454d03.zip |
Use CREATEWIDGET macro in npcselldialog.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/npcselldialog.cpp | 4 |
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; } |