From 71fd4e8d3255e15c16a4f4b51c87222c661a5b33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 May 2015 18:29:07 +0300 Subject: Add strong typed bool type for modal bool flag. --- src/gui/dialogsmanager.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/gui/dialogsmanager.cpp') 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); } -- cgit v1.2.3-70-g09d2