Ver código fonte

Bug fix: Option to switch to Location profiles was shown on Open directory dialog even when not possible, while session was disconnected

Source commit: 587c2aa8da418e109a17dd919cb10399130fce9c
Martin Prikryl 11 meses atrás
pai
commit
111c4feded
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -7034,7 +7034,7 @@ void __fastcall TCustomScpExplorerForm::DoOpenDirectoryDialog(
         if (::DoOpenDirectoryDialog(Mode, BookmarkSide, Name, VisitedDirectories, Terminal,
               // do not allow switching to location profiles,
               // if we are not connected
-              HasDirView[osLocal] && (Terminal != NULL)))
+              HasDirView[osLocal] && IsActiveTerminal(Terminal)))
         {
           TWindowLock Lock(this);
           if (!TryOpenDirectory(Side, Name))