mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: List index (0) out of bounds
(cherry picked from commit 205dd3cada)
This commit is contained in:
parent
9b62526af6
commit
095fb36268
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue