From 9ad591528e48d29d84563dbfb55b4858c9592f4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 May 2013 14:16:38 +0300 Subject: fix update host issue after registration in evol server. This issue happend if server allow only one update server. --- src/gui/logindialog.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/gui/logindialog.cpp') 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)) { -- cgit v1.2.3-70-g09d2