From 0060fec21e18b4c00aab5cd968753f27b4536f93 Mon Sep 17 00:00:00 2001 From: Violet Giraffe Date: Mon, 23 Sep 2024 16:27:47 +0300 Subject: [PATCH] Compilation fixed --- file-commander-core/src/shell/cshell.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file-commander-core/src/shell/cshell.cpp b/file-commander-core/src/shell/cshell.cpp index 066f9b22..4d7a2fde 100644 --- a/file-commander-core/src/shell/cshell.cpp +++ b/file-commander-core/src/shell/cshell.cpp @@ -26,8 +26,6 @@ RESTORE_COMPILER_WARNINGS #include #endif -static constexpr HRESULT UserCancelledAltError = 0x800704c7L; // When you close the system dialog with the title bar X rather than the cancel button inside the dialog - std::pair OsShell::shellExecutable() { #ifdef _WIN32 @@ -388,6 +386,9 @@ bool OsShell::deleteItems(const std::vector& items, bool moveToTra if (!SUCCEEDED(result)) qInfo() << "SetOwnerWindow failed"; + // When you close the system dialog with the title bar X rather than the cancel button inside the dialog + static constexpr HRESULT UserCancelledAltError = 0x800704c7L; + result = iOperation->PerformOperations(); if (!SUCCEEDED(result) && result != COPYENGINE_E_USER_CANCELLED && result != UserCancelledAltError) {