Browse Source

Browsing file was broken by bbc80980 (Issue 1057)

Source commit: d07efcd3a2cd114b3fd668580ed7480eb88b4257
Martin Prikryl 1 year ago
parent
commit
208622d877
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/packages/filemng/CustomDirView.pas

+ 1 - 1
source/packages/filemng/CustomDirView.pas

@@ -3509,7 +3509,7 @@ procedure TCustomDirView.FocusByName(FileName: string);
 var
   ListItem: TListItem;
 begin
-  ListItem := FindFileItemIfNotEmpty(Name);
+  ListItem := FindFileItemIfNotEmpty(FileName);
   if Assigned(ListItem) then
   begin
     ItemFocused := ListItem;