aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferencesUpgrade.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPPreferencesUpgrade.m')
-rw-r--r--Source/SPPreferencesUpgrade.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 6d0a3393..11cd146c 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -32,6 +32,7 @@
#import "SPKeychain.h"
#import "SPFavoritesController.h"
#import "SPTreeNode.h"
+#import "SPFavoriteNode.h"
static NSString *SPOldFavoritesKey = @"favorites";
static NSString *SPOldDefaultEncodingKey = @"DefaultEncoding";
@@ -354,7 +355,7 @@ void SPApplyRevisionChanges(void)
for(SPTreeNode *node in favs) {
if([node isGroup])
continue;
- NSMutableDictionary *data = [[node representedObject] nodeFavorite];
+ NSMutableDictionary *data = [(SPFavoriteNode *)[node representedObject] nodeFavorite];
if(![data objectForKey:SPFavoriteColorIndexKey])
[data setObject:@(-1) forKey:SPFavoriteColorIndexKey];
}