summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_theme.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/widgets/tabs/setup_theme.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/widgets/tabs/setup_theme.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_theme.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp
index 9efba0897..54015d788 100644
--- a/src/gui/widgets/tabs/setup_theme.cpp
+++ b/src/gui/widgets/tabs/setup_theme.cpp
@@ -307,14 +307,14 @@ void Setup_Theme::action(const ActionEvent &event)
else if (eventId == ACTION_INFO)
{
// TRANSLATORS: theme info dialog header
- new OkDialog(_("Theme info"), mThemeInfo,
+ (new OkDialog(_("Theme info"), mThemeInfo,
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
Modal_false,
ShowCenter_true,
nullptr,
- 600);
+ 600))->postInit();
}
}
@@ -340,7 +340,7 @@ void Setup_Theme::apply()
if (config.getStringValue("theme") != mTheme)
{
// TRANSLATORS: theme message dialog
- new OkDialog(_("Theme Changed"),
+ (new OkDialog(_("Theme Changed"),
// TRANSLATORS: ok dialog message
_("Restart your client for the change to take effect."),
// TRANSLATORS: ok dialog button
@@ -349,7 +349,7 @@ void Setup_Theme::apply()
Modal_true,
ShowCenter_true,
nullptr,
- 260);
+ 260))->postInit();
}
config.setValue("selectedSkin", "");