FIX: List index (0) out of bounds

(cherry picked from commit 205dd3cada)
This commit is contained in:
Alexander Koblov 2024-03-23 16:19:52 +03:00
commit 095fb36268

View file

@ -154,6 +154,8 @@ var
Index: Integer;
MenuItem: TMenuItem;
begin
if AFiles.Count = 0 then Exit(False);
if AFiles[0].Path = 'trash:///' then
begin
FMenu.Assign(AMenu);