summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 18:29:07 +0300
commit71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (patch)
tree3942aec29f33b5ea2aa2e353451e10648f1bbb82 /src/gui/dialogsmanager.cpp
parent45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff)
downloadplus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz
plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2
plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz
plus-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/dialogsmanager.cpp')
-rw-r--r--src/gui/dialogsmanager.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index 599d8b815..b71a27664 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -97,7 +97,7 @@ void DialogsManager::createUpdaterWindow()
Window *DialogsManager::openErrorDialog(const std::string &header,
const std::string &message,
- const bool modal)
+ const Modal modal)
{
if (settings.supportUrl.empty() || config.getBoolValue("hidesupport"))
{
@@ -129,7 +129,7 @@ void DialogsManager::playerDeath()
// TRANSLATORS: ok dialog button
_("Revive"),
DialogType::OK,
- false, true, nullptr, 260);
+ Modal_false, true, nullptr, 260);
deathNotice->addActionListener(&postDeathListener);
}
}
@@ -157,7 +157,10 @@ void DialogsManager::attributeChanged(const int id,
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- false, true, nullptr, 260);
+ Modal_false,
+ true,
+ nullptr,
+ 260);
weightNotice->addActionListener(
&weightListener);
}
@@ -173,7 +176,10 @@ void DialogsManager::attributeChanged(const int id,
// TRANSLATORS: ok dialog button
_("OK"),
DialogType::OK,
- false, true, nullptr, 260);
+ Modal_false,
+ true,
+ nullptr,
+ 260);
weightNotice->addActionListener(
&weightListener);
}