summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/windows/updaterwindow.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index e2c1b6128..752aa21e6 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -934,13 +934,20 @@ void UpdaterWindow::logic()
}
else
{
- // Download of updates completed
- mCurrentFile = "latest.txt";
- mStoreInMemory = true;
- mDownloadStatus = UPDATE_PATCH;
- mValidateXml = false;
- download(); // download() changes
- // mDownloadComplete to false
+ if (!mUpdateHost.empty())
+ {
+ // Download of updates completed
+ mCurrentFile = "latest.txt";
+ mStoreInMemory = true;
+ mDownloadStatus = UPDATE_PATCH;
+ mValidateXml = false;
+ download(); // download() changes
+ // mDownloadComplete to false
+ }
+ else
+ {
+ mDownloadStatus = UPDATE_COMPLETE;
+ }
}
}
break;