Monotone-Parent: 8491fd7ecec899497401733993e0cfd27a87ca51

Monotone-Revision: 23e06db474789eb4ae4db47b1d4dff4b5d7fcb49

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-09-19T20:07:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-09-19 20:07:31 +00:00
parent 0b55cd4485
commit 80419f5ea7
4 changed files with 20 additions and 24 deletions
+3 -8
View File
@@ -46,7 +46,6 @@ static NSString *uidColumnName = @"c_uid";
- (id) initWithTableURL: (NSURL *) theURL
uid: (NSString *) theUID
fieldName: (NSString *) theFieldName
shouldPropagate: (BOOL) b
{
if ((self = [self init]))
{
@@ -57,7 +56,6 @@ static NSString *uidColumnName = @"c_uid";
url = [theURL copy];
uid = [theUID copy];
defFlags.ready = YES;
propagateCache = b;
}
else
{
@@ -291,12 +289,9 @@ static NSString *uidColumnName = @"c_uid";
[self errorWithFormat: @"failed to generate SQL for storing defaults"];
if (rc)
{
if (propagateCache)
[[SOGoCache sharedCache] cacheValues: values
ofType: ([fieldName isEqualToString: @"c_defaults"] ? @"defaults" : @"settings")
forLogin: uid];
}
[[SOGoCache sharedCache] cacheValues: values
ofType: ([fieldName isEqualToString: @"c_defaults"] ? @"defaults" : @"settings")
forLogin: uid];
return rc;
}