mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-16 00:45:26 +00:00
Monotone-Parent: 3c3f676520d5f154730079c576d8ffde515851cd
Monotone-Revision: 83e7d2455de99bbdf6ca18f2e16478d506a07412 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-11-30T15:42:16 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -213,18 +213,11 @@ NSString *SOGoDefaultsSourceUnmutableSource = @"SOGoDefaultsSourceUnmutableSourc
|
||||
{
|
||||
newName = [migratedKeys objectForKey: oldName];
|
||||
existingValue = [source objectForKey: newName];
|
||||
if (existingValue && ![existingValue isEqual: currentValue])
|
||||
[self errorWithFormat: @"both old and new defaults key"
|
||||
@" ('%@' and '%@') exist with a different value."
|
||||
@" Migration skipped.", oldName, newName];
|
||||
else
|
||||
{
|
||||
requireSync = YES;
|
||||
[source setObject: currentValue forKey: newName];
|
||||
[source removeObjectForKey: oldName];
|
||||
[self warnWithFormat: @"defaults key '%@' was renamed to '%@'",
|
||||
oldName, newName];
|
||||
}
|
||||
requireSync = YES;
|
||||
[source setObject: currentValue forKey: newName];
|
||||
[source removeObjectForKey: oldName];
|
||||
[self warnWithFormat: @"defaults key '%@' was renamed to '%@'",
|
||||
oldName, newName];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user