diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:09:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 21:09:11 +0300 |
commit | 2763d9c893b3f19485581cb21eabfa38f427eab9 (patch) | |
tree | aa8626fa1e65c23b1b3b441d0ff7536ce608bb7e /src | |
parent | 21eb6aa0cc168de4e90b74e4d917df5abd81d9bb (diff) | |
download | manaplus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.gz manaplus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.bz2 manaplus-2763d9c893b3f19485581cb21eabfa38f427eab9.tar.xz manaplus-2763d9c893b3f19485581cb21eabfa38f427eab9.zip |
Use CREATEWIDGET macro in gamehandler.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/ea/gamehandler.cpp | 8 |
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); } } |