diff options
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 3 | ||||
-rw-r--r-- | src/net/ea/charserverhandler.cpp | 8 | ||||
-rw-r--r-- | src/net/ea/gamehandler.cpp | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 8af3cb4f0..e0f686cad 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -56,7 +56,8 @@ void BuySellHandler::processNpcBuySellChoice(Net::MessageIn &msg) if (!BuySellDialog::isActive()) { mNpcId = msg.readInt32("npc id"); - new BuySellDialog(mNpcId); + BuySellDialog *const dialog = new BuySellDialog(mNpcId); + dialog->postInit(); } } diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp index 6348b5dc5..42c704933 100644 --- a/src/net/ea/charserverhandler.cpp +++ b/src/net/ea/charserverhandler.cpp @@ -138,14 +138,14 @@ void CharServerHandler::processCharCreateFailed(Net::MessageIn &msg) break; } // TRANSLATORS: error message header - new OkDialog(_("Error"), errorMessage, + (new OkDialog(_("Error"), errorMessage, // TRANSLATORS: ok dialog button _("OK"), DialogType::ERROR, Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); if (mCharCreateDialog) mCharCreateDialog->unlock(); BLOCK_END("CharServerHandler::processCharCreateFailed") @@ -160,14 +160,14 @@ void CharServerHandler::processCharDelete(Net::MessageIn &msg A_UNUSED) updateCharSelectDialog(); unlockCharSelectDialog(); // TRANSLATORS: info message - new OkDialog(_("Info"), _("Character deleted."), + (new OkDialog(_("Info"), _("Character deleted."), // TRANSLATORS: ok dialog button _("OK"), DialogType::OK, Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); BLOCK_END("CharServerHandler::processCharDelete") } diff --git a/src/net/ea/gamehandler.cpp b/src/net/ea/gamehandler.cpp index 9c100de00..31c487921 100644 --- a/src/net/ea/gamehandler.cpp +++ b/src/net/ea/gamehandler.cpp @@ -76,7 +76,7 @@ void GameHandler::processMapQuitResponse(Net::MessageIn &msg) { if (msg.readUInt8("response")) { - new OkDialog(_("Game"), + (new OkDialog(_("Game"), // TRANSLATORS: error message _("Request to quit denied!"), // TRANSLATORS: ok dialog button @@ -85,7 +85,7 @@ void GameHandler::processMapQuitResponse(Net::MessageIn &msg) Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } } |