diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 13:18:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 13:18:47 +0300 |
commit | 0369cb5dc2e5dae4acdb0753c3b309ef874c96ae (patch) | |
tree | ad49bd867bc44ad953c49b43df9c4e2c2705aa34 /src/gui/windows/updaterwindow.cpp | |
parent | 0ad3a821e42471a052027419336df2132613e9f3 (diff) | |
download | manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.gz manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.bz2 manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.xz manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.zip |
Move downloadstatus into separate file.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<UpdaterWindow *>(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) |