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/commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands.cpp') 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(ptr); - if (status == DOWNLOAD_STATUS_COMPLETE) + if (status == DownloadStatus::COMPLETE) { ChatTab *const tab = info->tab; if (chatWindow && (!tab || chatWindow->isTabPresent(tab))) -- cgit v1.2.3-60-g2f50