Browse Source

Bug fix: Command to create/edit a local shortcut was disabled with no session opened

Source commit: dddd804370c8e0e34f24e55783286d7371184e40
Martin Prikryl 6 years ago
parent
commit
cf7c1dcf0c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/forms/CustomScpExplorer.cpp

+ 2 - 2
source/forms/CustomScpExplorer.cpp

@@ -6318,9 +6318,9 @@ void __fastcall TCustomScpExplorerForm::AddEditLink(TOperationSide Side, bool Ad
 bool __fastcall TCustomScpExplorerForm::CanAddEditLink(TOperationSide Side)
 {
   return
-    (Terminal != NULL) &&
     ((GetSide(Side) != osRemote) ||
-     (Terminal->ResolvingSymlinks &&
+     ((Terminal != NULL) &&
+      Terminal->ResolvingSymlinks &&
       Terminal->IsCapable[fcSymbolicLink]));
 }
 //---------------------------------------------------------------------------