From 2763d9c893b3f19485581cb21eabfa38f427eab9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 21:09:11 +0300 Subject: Use CREATEWIDGET macro in gamehandler. --- src/net/ea/gamehandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index 2a526f4e9..a268bc5dc 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -28,6 +28,8 @@ #include "gui/windows/okdialog.h" +#include "gui/widgets/createwidget.h" + #include "net/messagein.h" #include "resources/notifytypes.h" @@ -74,7 +76,9 @@ void GameHandler::processMapQuitResponse(Net::MessageIn &msg) { if (msg.readUInt8("response")) { - (new OkDialog(_("Game"), + CREATEWIDGET(OkDialog, + // TRANSLATORS: error header + _("Game"), // TRANSLATORS: error message _("Request to quit denied!"), // TRANSLATORS: ok dialog button @@ -83,7 +87,7 @@ void GameHandler::processMapQuitResponse(Net::MessageIn &msg) Modal_true, ShowCenter_true, nullptr, - 260))->postInit(); + 260); } } -- cgit v1.2.3-60-g2f50