From 226ca6d117ae50c1d750350f37995e4e2e883c61 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 4 Jul 2019 13:21:43 +0200 Subject: [PATCH] Clear 'Cancelled' flag on download start. Fixes #6123. --- Telegram/SourceFiles/data/data_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index 49fd08a07..f2df8d7db 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -912,9 +912,9 @@ void DocumentData::save( if (_loader) { if (!_loader->setFileName(toFile)) { cancel(); - _flags &= ~Flag::DownloadCancelled; } } + _flags &= ~Flag::DownloadCancelled; if (_loader) { if (fromCloud == LoadFromCloudOrLocal) {