summaryrefslogtreecommitdiff
path: root/UCoreWorkers.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-30 21:34:36 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-11-30 21:34:36 +0100
commit19b81e549eb6e555003fdf26268f63bcb508b0c6 (patch)
treeb5793b10108339737cb14cb3bf9bd1e0d6cd2fac /UCoreWorkers.pas
parentd7ad13f338b1c403741ad2104247db1c175b3303 (diff)
downloadtuxcmd-19b81e549eb6e555003fdf26268f63bcb508b0c6.tar.xz
Fix duplicate files in the filelist
Diffstat (limited to 'UCoreWorkers.pas')
-rw-r--r--UCoreWorkers.pas2
1 files changed, 1 insertions, 1 deletions
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);