summaryrefslogtreecommitdiff
path: root/src/gui/dialogsmanager.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/dialogsmanager.cpp
parent71fd4e8d3255e15c16a4f4b51c87222c661a5b33 (diff)
downloadmanaplus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.gz
manaplus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.bz2
manaplus-e6d251345a48108495d39d82b0ec79deac63d86d.tar.xz
manaplus-e6d251345a48108495d39d82b0ec79deac63d86d.zip
Add strong typed bool type in OkDialog.
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 b71a27664..9d2bcb057 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -105,7 +105,10 @@ Window *DialogsManager::openErrorDialog(const std::string &header,
// TRANSLATORS: ok dialog button
_("Close"),
DialogType::ERROR,
- modal, true, nullptr, 260);
+ modal,
+ ShowCenter_true,
+ nullptr,
+ 260);
}
else
{
@@ -129,7 +132,10 @@ void DialogsManager::playerDeath()
// TRANSLATORS: ok dialog button
_("Revive"),
DialogType::OK,
- Modal_false, true, nullptr, 260);
+ Modal_false,
+ ShowCenter_true,
+ nullptr,
+ 260);
deathNotice->addActionListener(&postDeathListener);
}
}
@@ -158,7 +164,7 @@ void DialogsManager::attributeChanged(const int id,
_("OK"),
DialogType::OK,
Modal_false,
- true,
+ ShowCenter_true,
nullptr,
260);
weightNotice->addActionListener(
@@ -177,7 +183,7 @@ void DialogsManager::attributeChanged(const int id,
_("OK"),
DialogType::OK,
Modal_false,
- true,
+ ShowCenter_true,
nullptr,
260);
weightNotice->addActionListener(