summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))
{