浏览代码

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

https://winscp.net/tracker/1983
(cherry picked from commit bd19f92c7220dfd32bdf82f63b7d5937ccbe0c86)

Source commit: 0b18a78756a1229c8329bed1d65416bddbcae042
Martin Prikryl 4 年之前
父节点
当前提交
4b0d6f3b18
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      source/forms/CustomScpExplorer.cpp

+ 6 - 0
source/forms/CustomScpExplorer.cpp

@@ -2700,6 +2700,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 &)
       {