浏览代码

Bug fix: Resolving file move from synchronization checklist, invoked from command-line, closes a connection

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

+ 2 - 0
source/forms/CustomScpExplorer.cpp

@@ -1432,6 +1432,8 @@ void __fastcall TCustomScpExplorerForm::FileOperationProgress(
     // we suppose "/upload" or URL download mode
     if (!Visible && (ProgressData.Operation != foCalculateSize) &&
         (ProgressData.Operation != foCalculateChecksum) &&
+        // Hack to prevent renames from DoSynchronizeMove (synchronize checklist) closing the connection
+        (ProgressData.Operation != foRemoteMove) &&
         (FSynchronizeProgressForm == NULL) &&
         !FStandaloneEditing)
     {