summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-21 22:00:30 +0300
commit76dc498cd50fb5bc83b3d0a165df17781af35979 (patch)
tree6513853d484fa36e282afc2865e8e98f69100aeb /src/net/eathena/charserverhandler.cpp
parentba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff)
downloadplus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz
plus-76dc498cd50fb5bc83b3d0a165df17781af35979.zip
Call postInit after each window creation.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index f3ce778cf..0a634c80f 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -574,14 +574,14 @@ void CharServerHandler::processCharCheckRename(Net::MessageIn &msg)
else
{
// TRANSLATORS: info message
- new OkDialog(_("Error"), _("Character rename error."),
+ (new OkDialog(_("Error"), _("Character rename error."),
// TRANSLATORS: ok dialog button
_("Error"),
DialogType::ERROR,
Modal_true,
ShowCenter_true,
nullptr,
- 260);
+ 260))->postInit();
}
}
@@ -592,14 +592,14 @@ void CharServerHandler::processCharRename(Net::MessageIn &msg)
{
mCharSelectDialog->setName(mRenameId, mNewName);
// TRANSLATORS: info message
- new OkDialog(_("Info"), _("Character renamed."),
+ (new OkDialog(_("Info"), _("Character renamed."),
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
Modal_true,
ShowCenter_true,
nullptr,
- 260);
+ 260))->postInit();
}
else
{
@@ -625,14 +625,14 @@ void CharServerHandler::processCharRename(Net::MessageIn &msg)
break;
}
// TRANSLATORS: info message
- new OkDialog(_("Info"), message,
+ (new OkDialog(_("Info"), message,
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
Modal_true,
ShowCenter_true,
nullptr,
- 260);
+ 260))->postInit();
}
}
@@ -658,14 +658,14 @@ void CharServerHandler::processCharDeleteFailed(Net::MessageIn &msg)
unlockCharSelectDialog();
msg.readUInt8("error");
// TRANSLATORS: error message
- new OkDialog(_("Error"), _("Failed to delete character."),
+ (new OkDialog(_("Error"), _("Failed to delete character."),
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::ERROR,
Modal_true,
ShowCenter_true,
nullptr,
- 260);
+ 260))->postInit();
BLOCK_END("CharServerHandler::processCharDeleteFailed")
}