Browse Source

Bug 1829: Failure when changing directory using tree after resuming system from sleep

https://winscp.net/tracker/1829

Source commit: d546d0d568359b894434d8b42c7f114efb42a0f1
Martin Prikryl 5 years ago
parent
commit
2f38385bfb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      source/components/UnixDriveView.cpp

+ 2 - 0
source/components/UnixDriveView.cpp

@@ -70,6 +70,8 @@ void __fastcall TCustomUnixDriveView::CreateWnd()
   TCustomDriveView::CreateWnd();
 
   FDragDropFilesEx->TargetEffects = TDropEffectSet() << deCopy << deMove;
+  // in case the items were recreated
+  FPrevSelected = Selected;
 }
 //---------------------------------------------------------------------------
 void __fastcall TCustomUnixDriveView::SetTerminal(TTerminal * value)