Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
4b0d6f3b18
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      source/forms/CustomScpExplorer.cpp

+ 6 - 0
source/forms/CustomScpExplorer.cpp

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