summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.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/logindialog.cpp
parent45460ca58b3cbf6d92fe3cac1311bbfc9d00e841 (diff)
downloadmanaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.gz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.bz2
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.tar.xz
manaverse-71fd4e8d3255e15c16a4f4b51c87222c661a5b33.zip
Add strong typed bool type for modal bool flag.
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 4c59ab34d..a97a2284e 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -61,7 +61,7 @@ LoginDialog::LoginDialog(LoginData *const data,
std::string serverName,
std::string *const updateHost) :
// TRANSLATORS: login dialog name
- Window(_("Login"), false, nullptr, "login.xml"),
+ Window(_("Login"), Modal_false, nullptr, "login.xml"),
ActionListener(),
KeyListener(),
mLoginData(data),
@@ -226,7 +226,7 @@ void LoginDialog::action(const ActionEvent &event)
urlListener.url = url;
// TRANSLATORS: question dialog
ConfirmDialog *const confirmDlg = new ConfirmDialog(
- _("Open register url"), url, SOUND_REQUEST, false, true);
+ _("Open register url"), url, SOUND_REQUEST, false, Modal_true);
confirmDlg->postInit();
confirmDlg->addActionListener(&urlListener);
}