From 95bc78e4bfa8f084266da85dbafab4ec56507bb9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Oct 2014 20:20:44 +0300 Subject: If server not have update server, skip fix update server downloads. --- src/gui/windows/updaterwindow.cpp | 21 ++++++++++++++------- 1 file 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; -- cgit v1.2.3-70-g09d2