summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.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/windows/charselectdialog.cpp
parent45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff)
downloadmv-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz
mv-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2
mv-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz
mv-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp14
1 files changed, 11 insertions, 3 deletions
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;