diff options
-rw-r--r-- | Source/SPTableContent.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index a0b184dd..a127e51d 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -2382,9 +2382,12 @@ [menu addItem:item]; [item release]; - // Attempt to reselect the previously selected title, falling back to the first item - [compareField selectItemWithTitle:titleToRestore]; - if (![compareField selectedItem]) [compareField selectItemAtIndex:0]; + // Attempt to reselect the previously selected title, falling back to the first + // item on failure, as long as there is no filter selection to be restored. + if (!filterFieldToRestore) { + [compareField selectItemWithTitle:titleToRestore]; + if (![compareField selectedItem]) [compareField selectItemAtIndex:0]; + } // Update the argumentField enabled state [self performSelectorOnMainThread:@selector(toggleFilterField:) withObject:self waitUntilDone:YES]; |