summaryrefslogtreecommitdiff
path: root/UMain.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-15 16:22:51 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-15 16:22:51 +0100
commitb4a479a691069a0293754fa94922b77ca406fea7 (patch)
tree1c1629c445240340be23093b1607bb659040038d /UMain.pas
parent7f89810e3c6ff92b0771ca11a817b82e081ccfa5 (diff)
downloadtuxcmd-b4a479a691069a0293754fa94922b77ca406fea7.tar.xz
VFS: Compressed size display support
Diffstat (limited to 'UMain.pas')
-rw-r--r--UMain.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/UMain.pas b/UMain.pas
index d07a10c..e85e53d 100644
--- a/UMain.pas
+++ b/UMain.pas
@@ -6259,7 +6259,12 @@ begin
if (ConfSizeFormat < 5) or (Stat^.Size < 1024) then s := Format(' %s', [LANGHandleRunFromArchive_Bytes]);
FRunFromVFS.SizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.Size, 0), s]);
if (ConfSizeFormat < 5) or (Stat^.Size < 1024) then s := Format(' %s', [LANGHandleRunFromArchive_Bytes]);
- FRunFromVFS.PackedSizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.Size, 0), s]);
+ if Stat^.PackedSize >= 0 then begin
+ FRunFromVFS.PackedSizeLabel2.Caption := Format('%s%s<span weight="ultrabold"> </span>', [FormatSize(Stat^.PackedSize, 0), s]);
+ end else begin
+ FRunFromVFS.PackedSizeLabel2.Visible := False;
+ FRunFromVFS.PackedSizeLabel.Visible := False;
+ end;
FRunFromVFS.DateLabel2.Caption := Format('%s<span weight="ultrabold"> </span>', [FormatDate(Stat^.ModifyTime, True, True)]);
if (Command = '') and (not Stat^.IsExecutable) then begin
FRunFromVFS.OpensWithLabel2.Caption := Format('%s<span weight="ultrabold"> </span>', [LANGHandleRunFromArchive_NotAssociated]);