summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-02 17:51:43 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-02 17:51:43 +0300
commit2d0696abd547cf00fda04f070fb713c92acaf91b (patch)
tree2e240fb2c89184df00b4e06db65d889f1e2b3199 /src
parentadee4beacfb6865233c220e060697627d358bdb1 (diff)
downloadmanaplus-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.
Diffstat (limited to 'src')
-rw-r--r--src/gui/logindialog.cpp3
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",