From 0369cb5dc2e5dae4acdb0753c3b309ef874c96ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 13:18:47 +0300 Subject: Move downloadstatus into separate file. --- src/gui/windows/updaterwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/updaterwindow.cpp') diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 2735f85dc..4e0f609ac 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -456,19 +456,19 @@ void UpdaterWindow::loadPatch() mScrollArea->setVerticalScrollAmount(0); } -int UpdaterWindow::updateProgress(void *ptr, DownloadStatus status, +int UpdaterWindow::updateProgress(void *ptr, DownloadStatus::Type status, size_t dt, size_t dn) { UpdaterWindow *const uw = reinterpret_cast(ptr); if (!uw) return -1; - if (status == DOWNLOAD_STATUS_COMPLETE) + if (status == DownloadStatus::COMPLETE) { uw->mDownloadComplete = true; } - else if (status == DOWNLOAD_STATUS_ERROR || - status == DOWNLOAD_STATUS_CANCELLED) + else if (status == DownloadStatus::ERROR || + status == DownloadStatus::CANCELLED) { if (uw->mDownloadStatus == UPDATE_COMPLETE) { // ignoring error in last state (was UPDATE_PATCH) -- cgit v1.2.3-70-g09d2