diff options
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); } } |