summaryrefslogtreecommitdiff
path: root/src/gui
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/gui
parentadee4beacfb6865233c220e060697627d358bdb1 (diff)
downloadplus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.gz
plus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.bz2
plus-2d0696abd547cf00fda04f070fb713c92acaf91b.tar.xz
plus-2d0696abd547cf00fda04f070fb713c92acaf91b.zip
Fix updates problem if player by mistake enable empty custom update host.
Diffstat (limited to 'src/gui')
-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",