From 7f449edc143147efcb5af5ad9c3a9e0c5ada256a Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Fri, 11 Oct 2013 06:13:57 -0700 Subject: [PATCH] mamburu: Fixed hanging/crashing on directory change in spotlight panel --- Spotlight/SpotlightWindowController.m | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Spotlight/SpotlightWindowController.m b/Spotlight/SpotlightWindowController.m index d3609ae7a..26c039071 100644 --- a/Spotlight/SpotlightWindowController.m +++ b/Spotlight/SpotlightWindowController.m @@ -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;