Browse Source

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 năm trước cách đây
mục cha
commit
2e288bfd92

+ 5 - 2
source/forms/CustomScpExplorer.cpp

@@ -4987,8 +4987,11 @@ void __fastcall TCustomScpExplorerForm::DoSynchronize(
       int PParams = Params.Params;
       int PParams = Params.Params;
       if (!Full)
       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
       else
       {
       {