mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 10:39:20 +02:00
TShellListView: don't ask the system again for filesize since we already stored it somewhere.
git-svn-id: trunk@61796 -
This commit is contained in:
parent
0f5f2129da
commit
1e8b391f35
@ -1432,7 +1432,7 @@ begin
|
||||
NewItem.Caption := CurFileName;
|
||||
// Second column - Size
|
||||
// The raw size in bytes is stored in the data part of the item
|
||||
CurFileSize := FileSize(CurFilePath); // in Bytes
|
||||
CurFileSize := TFileItem(Files.Objects[i]).FFileInfo.Size; // in Bytes. (We already know this, so no need for FileSize(CurFilePath))
|
||||
NewItem.Data := Pointer(PtrInt(CurFileSize));
|
||||
if CurFileSize < 1024 then
|
||||
NewItem.SubItems.Add(Format(sShellCtrlsBytes, [IntToStr(CurFileSize)]))
|
||||
|
Loading…
Reference in New Issue
Block a user