diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-22 03:59:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-22 03:59:52 +0300 |
commit | db39d0fd0f3487bff91fd727e87546964f0cda69 (patch) | |
tree | cd7b99dd67e40ac8fb05462a6512fb7310ec9436 /src/gui | |
parent | 489c2ce0edaa0b5d690c9ff13ce98a05a84dc151 (diff) | |
download | plus-db39d0fd0f3487bff91fd727e87546964f0cda69.tar.gz plus-db39d0fd0f3487bff91fd727e87546964f0cda69.tar.bz2 plus-db39d0fd0f3487bff91fd727e87546964f0cda69.tar.xz plus-db39d0fd0f3487bff91fd727e87546964f0cda69.zip |
Fix update checking.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/updatewindow.cpp | 6 |
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 { |