From 6bf4a5aa68afb7d95632880c001286f2a721e1f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 13:26:40 +0300 Subject: Move updatetype into separate file. --- src/gui/windows/logindialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/windows/logindialog.cpp') diff --git a/src/gui/windows/logindialog.cpp b/src/gui/windows/logindialog.cpp index 101f547f0..83041bc75 100644 --- a/src/gui/windows/logindialog.cpp +++ b/src/gui/windows/logindialog.cpp @@ -84,7 +84,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, mRegisterButton(new Button(this, _("Register"), "register", this)), // TRANSLATORS: login dialog checkbox mCustomUpdateHost(new CheckBox(this, _("Custom update host"), - mLoginData->updateType & LoginData::Upd_Custom, this, "customhost")), + mLoginData->updateType & UpdateType::Custom, this, "customhost")), mUpdateHostText(new TextField(this, serverConfig.getValue( "customUpdateHost", ""))), mUpdateListModel(nullptr), @@ -129,7 +129,7 @@ LoginDialog::LoginDialog(LoginData *const data, std::string serverName, mUpdateTypeDropDown->setActionEventId("updatetype"); mUpdateTypeDropDown->setSelected((mLoginData->updateType - | LoginData::Upd_Custom) ^ LoginData::Upd_Custom); + | UpdateType::Custom) ^ UpdateType::Custom); if (!mCustomUpdateHost->isSelected()) mUpdateHostText->setVisible(false); @@ -277,7 +277,7 @@ void LoginDialog::prepareUpdate() if (mCustomUpdateHost->isSelected() && !mUpdateHostText->getText().empty()) { - updateType |= LoginData::Upd_Custom; + updateType |= UpdateType::Custom; serverConfig.setValue("customUpdateHost", mUpdateHostText->getText()); -- cgit v1.2.3-60-g2f50