From db39d0fd0f3487bff91fd727e87546964f0cda69 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 22 Jul 2011 03:59:52 +0300 Subject: Fix update checking. --- src/gui/updatewindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui') 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 { -- cgit v1.2.3-70-g09d2