From d756ecc609d7ef5b90f4173d3e94df38b7e9aa1f Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 10 Nov 2022 02:38:53 +0400 Subject: [PATCH] Handle cancel in menu_item_download_files, too --- Telegram/SourceFiles/menu/menu_item_download_files.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/menu/menu_item_download_files.cpp b/Telegram/SourceFiles/menu/menu_item_download_files.cpp index a0a5571e2..335433283 100644 --- a/Telegram/SourceFiles/menu/menu_item_download_files.cpp +++ b/Telegram/SourceFiles/menu/menu_item_download_files.cpp @@ -84,6 +84,7 @@ void AddAction( : (downloadPath == u"tmp"_q) ? session->local().tempDirectory() : downloadPath; + if (path.isEmpty()) return; const auto fullPath = [&](int i) { return filedialogDefaultName(