From 19b81e549eb6e555003fdf26268f63bcb508b0c6 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 30 Nov 2009 21:34:36 +0100 Subject: Fix duplicate files in the filelist --- UCoreWorkers.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UCoreWorkers.pas') diff --git a/UCoreWorkers.pas b/UCoreWorkers.pas index 8ded910..6eabc1e 100644 --- a/UCoreWorkers.pas +++ b/UCoreWorkers.pas @@ -542,7 +542,7 @@ begin if (not UpDir) and Selected then InputFiles.Add(CurrPath + String(FName)); // If not files are selected, take into the account current active item - if (AList.Count = 0) and Assigned(SelectedItem) and (not SelectedItem^.UpDir) then + if (InputFiles.Count = 0) and Assigned(SelectedItem) and (not SelectedItem^.UpDir) then InputFiles.Add(CurrPath + String(SelectedItem^.FName)); FillDirFiles(Engine, AList, InputFiles, DoNotRecurse, True); -- cgit v1.2.3