summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.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/gui/dialogsmanager.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/gui/dialogsmanager.cpp')
-rw-r--r--src/gui/dialogsmanager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index 9d2bcb057..eab8c7387 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -101,7 +101,7 @@ Window *DialogsManager::openErrorDialog(const std::string &header,
{
if (settings.supportUrl.empty() || config.getBoolValue("hidesupport"))
{
- return new OkDialog(header, message,
+ OkDialog *const dialog = new OkDialog(header, message,
// TRANSLATORS: ok dialog button
_("Close"),
DialogType::ERROR,
@@ -109,6 +109,8 @@ Window *DialogsManager::openErrorDialog(const std::string &header,
ShowCenter_true,
nullptr,
260);
+ dialog->postInit();
+ return dialog;
}
else
{
@@ -136,6 +138,7 @@ void DialogsManager::playerDeath()
ShowCenter_true,
nullptr,
260);
+ deathNotice->postInit();
deathNotice->addActionListener(&postDeathListener);
}
}
@@ -167,6 +170,7 @@ void DialogsManager::attributeChanged(const int id,
ShowCenter_true,
nullptr,
260);
+ weightNotice->postInit();
weightNotice->addActionListener(
&weightListener);
}
@@ -186,6 +190,7 @@ void DialogsManager::attributeChanged(const int id,
ShowCenter_true,
nullptr,
260);
+ weightNotice->postInit();
weightNotice->addActionListener(
&weightListener);
}