summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/updatewindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index a062428de..27718928d 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -353,8 +353,8 @@ int UpdaterWindow::updateProgress(void *ptr, DownloadStatus status,
else if (status == DOWNLOAD_STATUS_ERROR ||
status == DOWNLOAD_STATUS_CANCELLED)
{
- if (uw->mDownloadStatus == UPDATE_PATCH)
- {
+ if (uw->mDownloadStatus == UPDATE_COMPLETE)
+ { // ignoring error in last state (was UPDATE_PATCH)
uw->mDownloadStatus = UPDATE_COMPLETE;
uw->mDownloadComplete = true;
free(uw->mMemoryBuffer);
@@ -421,7 +421,7 @@ void UpdaterWindow::download()
if (mDownloadStatus == UPDATE_PATCH)
{
mDownload = new Net::Download(this, "http://manaplus.evolonline.org/update/"
- + mCurrentFile, updateProgress);
+ + mCurrentFile, updateProgress, true);
}
else
{