Change the first responder only if there is a result from the search, if there isn’t the user probably will try to another search with a different name, so the search text filed need to remain the first responder.

This commit is contained in:
Damiano Galassi committed 2013-12-06 19:17:24 +01:00
1 parent 98c92addee
commit 22a31217cb
1 file changed
+2 -1
+2 -1
View File
@@ -220,7 +220,8 @@
[resultsTable reloadData];
[metadataTable reloadData];
[self tableViewSelectionDidChange:[NSNotification notificationWithName:@"tableViewSelectionDidChange" object:resultsTable]];
[[self window] makeFirstResponder:resultsTable];
if ([resultsArray count])
[[self window] makeFirstResponder:resultsTable];
currentSearcher = nil;
}