From e6d251345a48108495d39d82b0ec79deac63d86d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 5 May 2015 18:40:31 +0300 Subject: Add strong typed bool type in OkDialog. --- 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 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( -- cgit v1.2.3-70-g09d2