summaryrefslogtreecommitdiff
path: root/src/gui/windows/logindialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/logindialog.cpp')
-rw-r--r--src/gui/windows/logindialog.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp
index 47b2ae447..644c9f2ad 100644
--- a/src/gui/windows/logindialog.cpp
+++ b/src/gui/windows/logindialog.cpp
@@ -132,7 +132,7 @@ LoginDialog::LoginDialog(LoginData *const data,
| UpdateType::Custom) ^ UpdateType::Custom);
if (!mCustomUpdateHost->isSelected())
- mUpdateHostText->setVisible(false);
+ mUpdateHostText->setVisible(Visible_false);
mUserField->setActionEventId("login");
mPassField->setActionEventId("login");
@@ -170,7 +170,7 @@ LoginDialog::LoginDialog(LoginData *const data,
void LoginDialog::postInit()
{
Window::postInit();
- setVisible(true);
+ setVisible(Visible_true);
const int h = 200;
if (mUpdateHostLabel)
@@ -234,12 +234,13 @@ void LoginDialog::action(const ActionEvent &event)
}
else if (eventId == "customhost")
{
- mUpdateHostText->setVisible(mCustomUpdateHost->isSelected());
+ mUpdateHostText->setVisible(fromBool(
+ mCustomUpdateHost->isSelected(), Visible));
}
else if (eventId == "updateselect")
{
mCustomUpdateHost->setSelected(false);
- mUpdateHostText->setVisible(false);
+ mUpdateHostText->setVisible(Visible_false);
}
}