Permalink
Browse files

use `validPaths` instead since it's already been checked for a value

  • Loading branch information...
1 parent c2ae2b2 commit 8eb7869aca7c2f86087be7d1a7854b02d2e343a2 @skurfer committed Nov 27, 2012
@@ -315,7 +315,7 @@ - (NSArray *)validIndirectObjectsForAction:(NSString *)action directObject:(QSOb
} else if ([action isEqualToString:kFileMoveToAction] || [action isEqualToString:kFileCopyToAction]) {
// We only want folders for the move to / copy to actions (can't move to anything else)
NSMutableArray *fileObjects = [[[QSLibrarian sharedInstance] arrayForType:QSFilePathType] mutableCopy];
- NSString *currentFolderPath = [[[[dObject splitObjects] lastObject] singleFilePath] stringByDeletingLastPathComponent];
+ NSString *currentFolderPath = [[[dObject validPaths] lastObject] stringByDeletingLastPathComponent];
// if the object already exists, get that object. Otherwise create a new one
QSObject *currentFolderObject = [QSObject fileObjectWithPath:currentFolderPath];

0 comments on commit 8eb7869

Please sign in to comment.