summaryrefslogtreecommitdiff
path: root/UCoreWorkers.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2024-11-09 21:50:03 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2024-11-09 21:50:03 +0100
commit77bf3f344e58da9484685ef3550e0909a3666d78 (patch)
treeaa2d7634a54a1ce520236df3133ef494add0e401 /UCoreWorkers.pas
parentdcca0d691870b9f8be4be66d2e6d54e4635220dd (diff)
downloadtuxcmd-77bf3f344e58da9484685ef3550e0909a3666d78.tar.xz
Avoid showing error dialog on copy operation cancellation
No Error set, just a global cancellation.
Diffstat (limited to 'UCoreWorkers.pas')
-rw-r--r--UCoreWorkers.pas1
1 files changed, 1 insertions, 0 deletions
diff --git a/UCoreWorkers.pas b/UCoreWorkers.pas
index 8c35c49..709de2b 100644
--- a/UCoreWorkers.pas
+++ b/UCoreWorkers.pas
@@ -1373,6 +1373,7 @@ var DefResponse: integer; // Global variables for this function
end;
// Error handling
+ if FCancelled then Exit;
if (not Res) and (not FCopySkipAllErrors) then begin
if FCopyErrorHandledInProgress then begin
if FCopySilentCancel then Result := False; // Break the processing