Skip to content

Commit

Permalink
merge recent and iCloud documents correctly
Browse files Browse the repository at this point in the history
It was mixing file paths with QSObjects. Now it combines two arrays of QSObjects.

fixes #1396
  • Loading branch information
skurfer committed Feb 18, 2013
1 parent 346e2a0 commit 0666722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quicksilver/Code-QuickStepCore/QSObject_FileHandling.m
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ - (BOOL)loadChildrenForObject:(QSObject *)object {
NSIndexSet *ind = [iCloudDocuments indexesOfObjectsWithOptions:NSEnumerationConcurrent passingTest:^BOOL(QSObject *icdoc, NSUInteger i, BOOL *stop) {
return ![recentDocuments containsObject:[icdoc objectForType:QSFilePathType]];
}];
newChildren = [QSObject fileObjectsWithPathArray:[recentDocuments arrayByAddingObjectsFromArray:[iCloudDocuments objectsAtIndexes:ind]]];
newChildren = [[QSObject fileObjectsWithPathArray:recentDocuments] arrayByAddingObjectsFromArray:[iCloudDocuments objectsAtIndexes:ind]];

for(QSObject * child in newChildren) {
[child setObject:bundleIdentifier forMeta:@"QSPreferredApplication"];
Expand Down

0 comments on commit 0666722

Please sign in to comment.