Skip to content

Commit

Permalink
Compilation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
VioletGiraffe committed Sep 23, 2024
1 parent 9287118 commit 0060fec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions file-commander-core/src/shell/cshell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ RESTORE_COMPILER_WARNINGS
#include <Windows.h>
#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<QString /* exe path */, QString /* args */> OsShell::shellExecutable()
{
#ifdef _WIN32
Expand Down Expand Up @@ -388,6 +386,9 @@ bool OsShell::deleteItems(const std::vector<std::wstring>& 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)
{
Expand Down

0 comments on commit 0060fec

Please sign in to comment.