summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-04 20:20:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-04 20:20:44 +0300
commit95bc78e4bfa8f084266da85dbafab4ec56507bb9 (patch)
tree9004c70dcf75b986c1cbb8c111fe8b992b46aa12 /src/gui
parentf840d8133e7fe1e76c9e1401a39fc57fecc0b140 (diff)
downloadplus-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.gz
plus-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.bz2
plus-95bc78e4bfa8f084266da85dbafab4ec56507bb9.tar.xz
plus-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.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;