diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-02 17:51:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-02 17:51:43 +0300 |
commit | 2d0696abd547cf00fda04f070fb713c92acaf91b (patch) | |
tree | 2e240fb2c89184df00b4e06db65d889f1e2b3199 | |
parent | adee4beacfb6865233c220e060697627d358bdb1 (diff) | |
download | manaplus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.gz manaplus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.bz2 manaplus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.xz manaplus-2d0696abd547cf00fda04f070fb713c92acaf91b.zip |
Fix updates problem if player by mistake enable empty custom update host.
-rw-r--r-- | src/gui/logindialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index e0033793b..ef8fd6bf0 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -177,7 +177,8 @@ void LoginDialog::action(const gcn::ActionEvent &event) mLoginData->remember = mKeepCheck->isSelected(); int updateType = mUpdateTypeDropDown->getSelected(); - if (mCustomUpdateHost->isSelected()) + if (mCustomUpdateHost->isSelected() + && mUpdateHostText->getText().empty()) { updateType |= LoginData::Upd_Custom; serverConfig.setValue("customUpdateHost", |