aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryController.m')
-rw-r--r--Source/SPQueryController.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m
index 807f5444..4345f616 100644
--- a/Source/SPQueryController.m
+++ b/Source/SPQueryController.m
@@ -493,11 +493,6 @@ static SPQueryController *sharedQueryController = nil;
}
-- (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL
-{
-
-}
-
- (void)replaceFavoritesByArray:(NSArray *)favoritesArray forFileURL:(NSURL *)fileURL
{
if([favoritesContainer objectForKey:[fileURL absoluteString]])
@@ -510,6 +505,12 @@ static SPQueryController *sharedQueryController = nil;
[historyContainer setObject:historyArray forKey:[fileURL absoluteString]];
}
+- (void)addFavorite:(NSDictionary *)favorite forFileURL:(NSURL *)fileURL
+{
+ if([favoritesContainer objectForKey:[fileURL absoluteString]])
+ [[favoritesContainer objectForKey:[fileURL absoluteString]] addObject:favorite];
+}
+
- (void)addHistory:(NSString *)history forFileURL:(NSURL *)fileURL
{