diff options
Diffstat (limited to 'Source/SPPreferenceController.m')
-rw-r--r-- | Source/SPPreferenceController.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPPreferenceController.m b/Source/SPPreferenceController.m index 5daf7f37..79589119 100644 --- a/Source/SPPreferenceController.m +++ b/Source/SPPreferenceController.m @@ -249,6 +249,9 @@ if ([favoritesTableView numberOfSelectedRows] == 1) { NSMutableDictionary *favorite = [NSMutableDictionary dictionaryWithDictionary:[[favoritesController arrangedObjects] objectAtIndex:[favoritesTableView selectedRow]]]; + // Alter the name to ensure the keychain item isn't shared and therefore overwritten when changed + [favorite setObject:[NSString stringWithFormat:@"%@ Copy", [favorite objectForKey:@"name"]] forKey:@"name"]; + [favoritesController addObject:favorite]; [favoritesTableView reloadData]; |