See ChangeLog

Monotone-Parent: 52f165b59a119e9417d23135986f09279085cc0e
Monotone-Revision: 19411003409b1b14299b09729d662efa35865717

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2009-03-23T12:51:16
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Ludovic Marcotte 2009-03-23 12:51:16 +00:00
parent 643d2dbf47
commit 159f0cd76d
3 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,9 @@
2009-03-23 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/SOGo/SOGoUser.m:
Don't retain/release the language ivar.
2009-03-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/SOGoUser.m ([SOGoUser -language]): cache the

View File

@ -464,9 +464,9 @@ _timeValue (NSString *key)
if (values)
{
/* see explanation in -language */
[language release];
// See explanation in -language
language = nil;
// Required parameters for the Web interface. This will trigger the
// preferences to load so it's important to leave those calls here.
if (![[defaults stringForKey: @"ReplyPlacement"] length])
@ -521,9 +521,9 @@ _timeValue (NSString *key)
values = [settings values];
if (values)
{
/* see explanation in -language */
[language release];
// See explanation in -language
language = nil;
// We propagate the loaded user settings to other sogod instances
// which will cache them in SOGoCache (including for the instance
// that actually posts the notification)
@ -553,12 +553,11 @@ _timeValue (NSString *key)
if (![language length])
{
language = [[self userDefaults] stringForKey: @"Language"];
// This is a hack until we handle the connection errors to the db a
// better way. It enables us to avoid retrieving the userDefaults too
// many times when the DB is down, causing a huge delay.
if (![language length])
language = [SOGoUser language];
/* This is a hack until we handle the connection errors to the db a
better way. It enables us to avoid retrieving the userDefaults 5000
times when the DB is down, causing a huge delay. */
[language retain];
}
return language;

View File

@ -113,7 +113,7 @@
return flatContent;
}
#warning we should use NSData+Mail's bodyDataFromEncoding: instead
#warning we should use NSData+Mail bodyDataFromEncoding: instead
- (NSData *) decodedFlatContent
{
NSString *enc;