diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-21 22:00:30 +0300 |
commit | 76dc498cd50fb5bc83b3d0a165df17781af35979 (patch) | |
tree | 6513853d484fa36e282afc2865e8e98f69100aeb /src/gui/windows/charselectdialog.cpp | |
parent | ba307a72cb8bcfe068e362fab4a5e572d9ac65e9 (diff) | |
download | mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.gz mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.bz2 mv-76dc498cd50fb5bc83b3d0a165df17781af35979.tar.xz mv-76dc498cd50fb5bc83b3d0a165df17781af35979.zip |
Call postInit after each window creation.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 9b03528ec..c6e040065 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -276,14 +276,14 @@ void CharSelectDialog::action(const ActionEvent &event) character->data.mAttributes[Attributes::EXP]), Units::formatCurrency( character->data.mAttributes[Attributes::MONEY]).c_str()); - new OkDialog(data->getName(), msg, + (new OkDialog(data->getName(), msg, // TRANSLATORS: ok dialog button _("OK"), DialogType::SILENCE, Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } } if (eventId == "switch") @@ -321,14 +321,14 @@ void CharSelectDialog::action(const ActionEvent &event) else { // TRANSLATORS: error message - new OkDialog(_("Error"), _("Incorrect password"), + (new OkDialog(_("Error"), _("Incorrect password"), // TRANSLATORS: ok dialog button _("OK"), DialogType::ERROR, Modal_true, ShowCenter_true, nullptr, - 260); + 260))->postInit(); } } mDeleteIndex = -1; @@ -346,6 +346,7 @@ void CharSelectDialog::use(const int selected) { CharCreateDialog *const charCreateDialog = new CharCreateDialog(this, selected); + charCreateDialog->postInit(); mCharServerHandler->setCharCreateDialog(charCreateDialog); } } |