|
@@ -150,6 +150,9 @@ bool __fastcall TFileFindDialog::Execute(UnicodeString Directory, UnicodeString
|
|
|
if (Result)
|
|
if (Result)
|
|
|
{
|
|
{
|
|
|
Path = static_cast<TRemoteFile *>(FileView->ItemFocused->Data)->FullFileName;
|
|
Path = static_cast<TRemoteFile *>(FileView->ItemFocused->Data)->FullFileName;
|
|
|
|
|
+ // To make focussing directories work,
|
|
|
|
|
+ // otherwise it would try to focus "empty-named file" in the Path
|
|
|
|
|
+ Path = UnixExcludeTrailingBackslash(Path);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
TFindFileConfiguration FormConfiguration = CustomWinConfiguration->FindFile;
|
|
TFindFileConfiguration FormConfiguration = CustomWinConfiguration->FindFile;
|