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/commands.cpp | |
parent | 0ad3a821e42471a052027419336df2132613e9f3 (diff) | |
download | plus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.gz plus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.bz2 plus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.xz plus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.zip |
Move downloadstatus into separate file.
Diffstat (limited to 'src/commands.cpp')
-rw-r--r-- | src/commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands.cpp b/src/commands.cpp index b434ba9ca..f4ead27e7 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1303,15 +1303,15 @@ struct UploadChatInfo }; static int uploadUpdate(void *ptr, - DownloadStatus status, + DownloadStatus::Type status, size_t total A_UNUSED, size_t remaining A_UNUSED) { - if (status == DOWNLOAD_STATUS_IDLE || status == DOWNLOAD_STATUS_STARTING) + if (status == DownloadStatus::IDLE || status == DownloadStatus::STARTING) return 0; UploadChatInfo *const info = reinterpret_cast<UploadChatInfo*>(ptr); - if (status == DOWNLOAD_STATUS_COMPLETE) + if (status == DownloadStatus::COMPLETE) { ChatTab *const tab = info->tab; if (chatWindow && (!tab || chatWindow->isTabPresent(tab))) |