diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 14:16:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 14:16:38 +0300 |
commit | 9ad591528e48d29d84563dbfb55b4858c9592f4e (patch) | |
tree | f18362dc31a7addb3f1a2e7d883c4dffe045fd24 /src/gui/logindialog.cpp | |
parent | a7b7812357a944947d157f1f1b01e7c070e7af56 (diff) | |
download | mv-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.gz mv-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.bz2 mv-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.xz mv-9ad591528e48d29d84563dbfb55b4858c9592f4e.zip |
fix update host issue after registration in evol server.
This issue happend if server allow only one update server.
Diffstat (limited to 'src/gui/logindialog.cpp')
-rw-r--r-- | src/gui/logindialog.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp index 61a31af61..a9d9874c6 100644 --- a/src/gui/logindialog.cpp +++ b/src/gui/logindialog.cpp @@ -367,9 +367,18 @@ void LoginDialog::prepareUpdate() (*mUpdateHost).clear(); } } - else if (mUpdateHostDropDown) + else { - const std::string str = mUpdateHostDropDown->getSelectedString(); + std::string str = ""; + if (mUpdateHostDropDown) + { + str = mUpdateHostDropDown->getSelectedString(); + } + else if (mLoginData->updateHost.empty() + && !mLoginData->updateHosts.empty()) + { + str = mLoginData->updateHosts[0]; + } serverConfig.setValue("updateHost2", str); if (!str.empty() && checkPath(str)) { |