|
|
@@ -1118,10 +1118,16 @@ void __fastcall TScpCommanderForm::UpdateControls()
|
|
|
{
|
|
|
DriveView(osOther)->SetFocus();
|
|
|
}
|
|
|
- else
|
|
|
+ else if (LocalDriveView->Visible)
|
|
|
{
|
|
|
LocalDriveView->SetFocus();
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ // Switching to a disconnected session with local drive view hidden - fallback to the local dir view (should always be visible)
|
|
|
+ DebugAssert(LocalDirView->Visible);
|
|
|
+ LocalDirView->SetFocus();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (RemotePathLabel->FocusControl != DirView(osOther))
|