diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-04 20:20:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-04 20:20:44 +0300 |
commit | 95bc78e4bfa8f084266da85dbafab4ec56507bb9 (patch) | |
tree | 9004c70dcf75b986c1cbb8c111fe8b992b46aa12 /src/gui | |
parent | f840d8133e7fe1e76c9e1401a39fc57fecc0b140 (diff) | |
download | mv-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.gz mv-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.bz2 mv-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.xz mv-95bc78e4bfa8f084266da85dbafab4ec56507bb9.zip |
If server not have update server, skip fix update server downloads.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 21 |
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; |