summaryrefslogtreecommitdiff
path: root/src/gui/logindialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 14:16:38 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 14:16:38 +0300
commit9ad591528e48d29d84563dbfb55b4858c9592f4e (patch)
treef18362dc31a7addb3f1a2e7d883c4dffe045fd24 /src/gui/logindialog.cpp
parenta7b7812357a944947d157f1f1b01e7c070e7af56 (diff)
downloadplus-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.gz
plus-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.bz2
plus-9ad591528e48d29d84563dbfb55b4858c9592f4e.tar.xz
plus-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.cpp13
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))
{