Browse Source

Bug 1983: Moving a transfer to background just in between two individual file transfers cancels the transfer

https://winscp.net/tracker/1983

Source commit: f2842bbfc56c23307b0dc3c4adaa9b06b20c3381
Martin Prikryl 4 years ago
parent
commit
bd19f92c72
1 changed files with 6 additions and 0 deletions
  1. 6 0
      source/forms/CustomScpExplorer.cpp

+ 6 - 0
source/forms/CustomScpExplorer.cpp

@@ -2761,6 +2761,12 @@ bool __fastcall TCustomScpExplorerForm::ExecuteCopyMoveFileOperation(
             ReloadLocalDirectory(Param.TargetDirectory);
           }
         }
+
+        // When the transfer batch is aborted between individual file transfers, the Abort is not called.
+        if (FMoveToQueue)
+        {
+          Abort();
+        }
       }
       catch (EAbort &)
       {