See ChangeLog

Monotone-Parent: 14183e9d9367b240b6e0585031a87772c952285a
Monotone-Revision: 50e173285f95163a8c7af77f9550d24a75d046e5

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-02-08T16:11:37
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Francis Lachapelle 2010-02-08 16:11:37 +00:00
parent e350c7b90b
commit 026600472e
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-02-08 Francis Lachapelle <flachapelle@inverse.ca>
* UI/MailerUI/UIxMailListView.m (-messageSize): improved
formatting of message size.
2010-02-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MainUI/SOGoRootPage.m (-_standardDefaultAction): add an

View File

@ -119,9 +119,13 @@
int size;
size = [[message valueForKey: @"size"] intValue];
rc = [NSString stringWithFormat: @"%dK", size/1024];
if (size > 1024*1024)
rc = [NSString stringWithFormat: @"%.1f MB", (float) size/1024/1024];
else if (size > 1024*100)
rc = [NSString stringWithFormat: @"%d KB", size/1024];
else
rc = [NSString stringWithFormat: @"%.1f KB", (float) size/1024];
return rc;
}