Explorar o código

Bug fix: Found folders were focusing incorrectly

Source commit: 012e0d1431bcb502ad981cf97d631322416c2862
Martin Prikryl %!s(int64=9) %!d(string=hai) anos
pai
achega
74ff3076b0
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      source/forms/FileFind.cpp

+ 3 - 0
source/forms/FileFind.cpp

@@ -150,6 +150,9 @@ bool __fastcall TFileFindDialog::Execute(UnicodeString Directory, UnicodeString
   if (Result)
   {
     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;