diff options
Diffstat (limited to 'Source/SPFavoritesController.m')
-rw-r--r-- | Source/SPFavoritesController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPFavoritesController.m b/Source/SPFavoritesController.m index 0985d680..e883d876 100644 --- a/Source/SPFavoritesController.m +++ b/Source/SPFavoritesController.m @@ -236,7 +236,7 @@ static SPFavoritesController *sharedFavoritesController = nil; // If the favorites data file already exists use it, otherwise create an empty one if ([fileManager fileExistsAtPath:favoritesFile]) { - favoritesData = [[NSDictionary alloc] initWithContentsOfFile:favoritesFile]; + favoritesData = [[NSMutableDictionary alloc] initWithContentsOfFile:favoritesFile]; } else { NSMutableDictionary *newFavorites = [NSMutableDictionary dictionaryWithObject:[NSMutableDictionary dictionaryWithObjectsAndKeys:NSLocalizedString(@"Favorites", @"favorites label"), SPFavoritesGroupNameKey, [NSArray array], SPFavoriteChildrenKey, nil] forKey:SPFavoritesRootKey]; @@ -346,7 +346,7 @@ static SPFavoritesController *sharedFavoritesController = nil; } } else { - node = [[SPFavoriteNode alloc] initWithDictionary:nodeData]; + node = [[SPFavoriteNode alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:nodeData]]; treeNode = [[SPTreeNode alloc] initWithRepresentedObject:node]; |