Search structurally works again. Filtering is not polished.

This commit is contained in:
michael starke
2014-02-27 21:54:59 +01:00
parent 4273e41142
commit 90d5bc9ef2
3 changed files with 9 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ typedef NS_ENUM(NSUInteger, MPContextTab) {
- (void)_didChangeCurrentItem:(NSNotification *)notification {
MPDocument *document = [notification object];
BOOL showTrash = document.useTrash && (document.selectedGroup == document.trash || [document isItemTrashed:document.selectedItem]);
if(showTrash) {
if(showTrash && ! document.hasSearch) {
self.activeTab = MPContextTabTrash;
[self _updateBindings];
}