diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-05 21:19:12 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-10-05 21:19:12 +0200 |
| commit | cb7efbd2493720e3129695ce72df3ee4190e9086 (patch) | |
| tree | 176bfee7289bf5cfacfb54acf375e3e55482b95f /UMain.pas | |
| parent | 58575911b488c1f57984e7220ec3d31b76a5b25c (diff) | |
| download | tuxcmd-cb7efbd2493720e3129695ce72df3ee4190e9086.tar.xz | |
Don't count directories in panel statusbar
Diffstat (limited to 'UMain.pas')
| -rw-r--r-- | UMain.pas | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2045,11 +2045,11 @@ begin if DataList.Count > 0 then for i := 0 to DataList.Count - 1 do begin Data := DataList[i]; - if (not Data^.UpDir) and ((not Data^.IsDir) or (Data^.IsDir and (Data^.Size > -1))) then begin + if (not Data^.UpDir) and ((not Data^.IsDir) or (Data^.IsDir and (Data^.Size > 0))) then begin Inc(TotalSize, Data^.Size); - Inc(TotalFiles); + if not Data^.IsDir then Inc(TotalFiles); if Data^.Selected then begin - Inc(NumSel); + if not Data^.IsDir then Inc(NumSel); Inc(Size, Data^.Size); end; end; |
