Browse Source

Fixing assertion when testing link actions with disconnected session

Reported by Michael Gruber

(cherry picked from commit d17d94d247170cf4894314639fd2d54fee435289)

Source commit: 969415f283fc895e0b1552b77b580416069769b5
Martin Prikryl 5 năm trước cách đây
mục cha
commit
f784ea29e8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      source/forms/CustomScpExplorer.cpp

+ 1 - 0
source/forms/CustomScpExplorer.cpp

@@ -6480,6 +6480,7 @@ bool __fastcall TCustomScpExplorerForm::CanAddEditLink(TOperationSide Side)
   return
     (IsSideLocalBrowser(Side) ||
      ((Terminal != NULL) &&
+      Terminal->Active &&
       Terminal->ResolvingSymlinks &&
       Terminal->IsCapable[fcSymbolicLink]));
 }