summaryrefslogtreecommitdiff
path: root/src/net/ea/tradehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/tradehandler.cpp')
-rw-r--r--src/net/ea/tradehandler.cpp11
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