summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:40:31 +0300
commite6d251345a48108495d39d82b0ec79deac63d86d (patch)
treee7a8ecf138b30b091146f51e1b13f0e0e7c0359b /src/gui/widgets/tabs/setup_theme.cpp
parent71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (diff)
downloadplus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.gz
plus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.bz2
plus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.xz
plus-e6d251345a48108495d39d82b0ec79deac63d86d.zip
Add strong typed bool type in OkDialog.
Diffstat (limited to 'src/gui/widgets/tabs/setup_theme.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_theme.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/widgets/tabs/setup_theme.cpp b/src/gui/widgets/tabs/setup_theme.cpp
index e795b0928..9efba0897 100644
--- a/src/gui/widgets/tabs/setup_theme.cpp
+++ b/src/gui/widgets/tabs/setup_theme.cpp
@@ -312,7 +312,7 @@ void Setup_Theme::action(const ActionEvent &event)
_("OK"),
DialogType::OK,
Modal_false,
- true,
+ ShowCenter_true,
nullptr,
600);
}
@@ -340,13 +340,14 @@ void Setup_Theme::apply()
if (config.getStringValue("theme") != mTheme)
{
// TRANSLATORS: theme message dialog
- new OkDialog(_("Theme Changed"), _("Restart your client for "
- "the change to take effect."),
+ new OkDialog(_("Theme Changed"),
+ // TRANSLATORS: ok dialog message
+ _("Restart your client for the change to take effect."),
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
Modal_true,
- true,
+ ShowCenter_true,
nullptr,
260);
}