mamburu: Fixed hanging/crashing on directory change in spotlight panel
This commit is contained in:
parent
eef7ac383c
commit
7f449edc14
1 changed files with 9 additions and 10 deletions
|
@ -79,16 +79,15 @@ static NSPredicate * musicOnlyPredicate = nil;
|
|||
|
||||
[self registerDefaults];
|
||||
|
||||
// We want to bind the query's search scope to the user default that is
|
||||
// set from the NSPathControl.
|
||||
NSDictionary *bindOptions =
|
||||
[NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer"
|
||||
forKey:NSValueTransformerNameBindingOption];
|
||||
|
||||
[self.query bind:@"searchScopes"
|
||||
toObject:[NSUserDefaultsController sharedUserDefaultsController]
|
||||
withKeyPath:@"values.spotlightSearchPath"
|
||||
options:bindOptions];
|
||||
// TODO: spotlightSearchPath is bound via IB, is the below needed?
|
||||
// NSDictionary *bindOptions =
|
||||
// [NSDictionary dictionaryWithObject:@"StringToSearchScopeTransformer"
|
||||
// forKey:NSValueTransformerNameBindingOption];
|
||||
//
|
||||
// [self.query bind:@"searchScopes"
|
||||
// toObject:[NSUserDefaultsController sharedUserDefaultsController]
|
||||
// withKeyPath:@"values.spotlightSearchPath"
|
||||
// options:bindOptions];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue