summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r--src/gui/windows/updaterwindow.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 752aa21e6..5dc0a7708 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -208,7 +208,8 @@ UpdaterWindow::UpdaterWindow(const std::string &restrict updateHost,
mDownloadComplete(true),
mUserCancel(false),
mLoadUpdates(applyUpdates),
- mValidateXml(false)
+ mValidateXml(false),
+ mSkipPatches(false)
{
setWindowName("UpdaterWindow");
setResizable(true);
@@ -237,6 +238,14 @@ UpdaterWindow::UpdaterWindow(const std::string &restrict updateHost,
addKeyListener(this);
+ if (mUpdateHost.empty())
+ {
+ const std::vector<std::string> &mirrors = settings.updateMirrors;
+ if (mirrors.begin() != mirrors.end())
+ mUpdateHost = *mirrors.begin();
+ mSkipPatches = true;
+ }
+
loadWindowState();
}
@@ -934,7 +943,7 @@ void UpdaterWindow::logic()
}
else
{
- if (!mUpdateHost.empty())
+ if (!mSkipPatches)
{
// Download of updates completed
mCurrentFile = "latest.txt";