瀏覽代碼

Bug 1549: Unchecking Update subdirectories for Keep remote directory up to date function was not fully working

https://winscp.net/tracker/1549

Source commit: c59c8b054344706c6f4af8c74068d158e00806e3
Martin Prikryl 8 年之前
父節點
當前提交
2e288bfd92
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      source/forms/CustomScpExplorer.cpp

+ 5 - 2
source/forms/CustomScpExplorer.cpp

@@ -4987,8 +4987,11 @@ void __fastcall TCustomScpExplorerForm::DoSynchronize(
       int PParams = Params.Params;
       if (!Full)
       {
-        PParams |= TTerminal::spNoRecurse | TTerminal::spUseCache |
-          TTerminal::spDelayProgress | TTerminal::spSubDirs;
+        PParams |= TTerminal::spNoRecurse | TTerminal::spUseCache | TTerminal::spDelayProgress;
+        if (FLAGSET(Params.Options, soRecurse))
+        {
+          PParams |= TTerminal::spSubDirs;
+        }
       }
       else
       {