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/windows/charselectdialog.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/charselectdialog.cpp') diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 9f51e3583..6d3c75e87 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -65,7 +65,9 @@ CharSelectDialog::CharSelectDialog(LoginData *const data) : // TRANSLATORS: char select dialog name Window(strprintf(_("Account %s (last login time %s)"), data->username.c_str(), data->lastLogin.c_str()), - false, nullptr, "char.xml"), + Modal_false, + nullptr, + "char.xml"), ActionListener(), KeyListener(), mLoginData(data), @@ -277,7 +279,10 @@ void CharSelectDialog::action(const ActionEvent &event) // TRANSLATORS: ok dialog button _("OK"), DialogType::SILENCE, - true, true, nullptr, 260); + Modal_true, + true, + nullptr, + 260); } } if (eventId == "switch") @@ -319,7 +324,10 @@ void CharSelectDialog::action(const ActionEvent &event) // TRANSLATORS: ok dialog button _("OK"), DialogType::ERROR, - true, true, nullptr, 260); + Modal_true, + true, + nullptr, + 260); } } mDeleteIndex = -1; -- cgit v1.2.3-60-g2f50