|
@@ -4461,9 +4461,7 @@ bool __fastcall TCustomScpExplorerForm::OpenBookmark(TOperationSide Side, TBookm
|
|
|
bool Result = !Path.IsEmpty();
|
|
|
if (Result)
|
|
|
{
|
|
|
- // While we might get here when the session is closed (from location profiles),
|
|
|
- // it's not a problem as the Path setter is noop then
|
|
|
- DirView(Side)->Path = Path;
|
|
|
+ TryOpenDirectory(Side, Path);
|
|
|
}
|
|
|
return Result;
|
|
|
}
|
|
@@ -10870,14 +10868,19 @@ bool __fastcall TCustomScpExplorerForm::TryOpenDirectory(TOperationSide Side, co
|
|
|
bool Remote = !IsSideLocalBrowser(Side);
|
|
|
try
|
|
|
{
|
|
|
+ UnicodeString APath = Path;
|
|
|
if (Remote)
|
|
|
{
|
|
|
Terminal->ExceptionOnFail = true;
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+ APath = ExpandEnvironmentVariables(Path);
|
|
|
+ }
|
|
|
|
|
|
try
|
|
|
{
|
|
|
- DirView(Side)->Path = Path;
|
|
|
+ DirView(Side)->Path = APath;
|
|
|
}
|
|
|
__finally
|
|
|
{
|