summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/updaterwindow.cpp13
-rw-r--r--src/gui/windows/updaterwindow.h2
2 files changed, 13 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";
diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h
index 59afa5a24..a5d893a5b 100644
--- a/src/gui/windows/updaterwindow.h
+++ b/src/gui/windows/updaterwindow.h
@@ -260,6 +260,8 @@ class UpdaterWindow final : public Window,
bool mLoadUpdates;
bool mValidateXml;
+
+ bool mSkipPatches;
};
extern UpdaterWindow *updaterWindow;