diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:19:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:19:00 +0300 |
commit | fd229a024de7244181e184d736a610645f32db0d (patch) | |
tree | 0616cf5318893250519015658fd2d8d88963302c /src/net/ea/tradehandler.cpp | |
parent | 0e13e22e4902eca435812ae002c56ad13233efc6 (diff) | |
download | manaverse-fd229a024de7244181e184d736a610645f32db0d.tar.gz manaverse-fd229a024de7244181e184d736a610645f32db0d.tar.bz2 manaverse-fd229a024de7244181e184d736a610645f32db0d.tar.xz manaverse-fd229a024de7244181e184d736a610645f32db0d.zip |
Use CREATEWIDGET macro in tradehandler.
Diffstat (limited to 'src/net/ea/tradehandler.cpp')
-rw-r--r-- | src/net/ea/tradehandler.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index a0c84c24e..848e0a024 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -28,6 +28,8 @@ #include "gui/windows/tradewindow.h" +#include "gui/widgets/createwidget.h" + #include "net/messagein.h" #include "utils/gettext.h" @@ -168,13 +170,14 @@ void TradeHandler::processTradeRequestContinue(const std::string &partner) != tradePartnerName) { tradeWindow->clear(); - // TRANSLATORS: trade message - confirmDlg = new ConfirmDialog(_("Request for Trade"), + CREATEWIDGETV(confirmDlg, ConfirmDialog, + // TRANSLATORS: trade message + _("Request for Trade"), // TRANSLATORS: trade message strprintf(_("%s wants to trade with you, do" " you accept?"), tradePartnerName.c_str()), - SOUND_REQUEST, true); - confirmDlg->postInit(); + SOUND_REQUEST, + true); confirmDlg->addActionListener(&listener); } else |