Browse Source

Bug fix: Command-line is disabled even for a local panel, if no session is connected or the connected session does support executing remote commands

Source commit: 3eceab33ac00f4dab1cb2e771f4f8c60c4173fe3
Martin Prikryl 8 years ago
parent
commit
d6f472d8d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/forms/ScpCommander.cpp

+ 1 - 1
source/forms/ScpCommander.cpp

@@ -816,7 +816,7 @@ void __fastcall TScpCommanderForm::UpdateControls()
     UpdateToolbar2ItemCaption(CurrentMoveToolbar2Item);
   }
 
-  CommandLineCombo->Enabled = CanConsole();
+  CommandLineCombo->Enabled = (FCurrentSide == osLocal) || CanConsole();
   CommandLinePromptLabel->Enabled = CommandLineCombo->Enabled;
 }
 //---------------------------------------------------------------------------