summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 21:09:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 21:09:11 +0300
commit2763d9c893b3f19485581cb21eabfa38f427eab9 (patch)
treeaa8626fa1e65c23b1b3b441d0ff7536ce608bb7e
parent21eb6aa0cc168de4e90b74e4d917df5abd81d9bb (diff)
downloadplus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.gz
plus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.bz2
plus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.xz
plus-2763d9c893b3f19485581cb21eabfa38f427eab9.zip
Use CREATEWIDGET macro in gamehandler.
-rw-r--r--src/net/ea/gamehandler.cpp8
1 files changed, 6 insertions, 2 deletions
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);
}
}