ソースを参照

Bug fix: Downloading a file to a directory loaded in a hidden second local panel incorrectly triggers synchronized browsing

Source commit: c54e4505df56f67fe9e33c84e34d0842cb5c1938
Martin Prikryl 4 年 前
コミット
e15a81af7b
1 ファイル変更6 行追加1 行削除
  1. 6 1
      source/forms/ScpCommander.cpp

+ 6 - 1
source/forms/ScpCommander.cpp

@@ -1603,7 +1603,12 @@ void __fastcall TScpCommanderForm::DoDirViewLoaded(TCustomDirView * ADirView)
 
   UpdateControls();
 
-  SynchronizeBrowsing(ADirView);
+  // In addition to being an optimization, this prevents synchronized browsing against the other local panel,
+  // when the users happens to e.g. download a file to the directory loaded in the panel.
+  if (ADirView != OtherLocalDirView)
+  {
+    SynchronizeBrowsing(ADirView);
+  }
 }
 //---------------------------------------------------------------------------
 void __fastcall TScpCommanderForm::AddEditLink(TOperationSide Side, bool Add)