From 28a705f74854d5c34d0e952c0747a512c19fadc2 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 13 Dec 2014 20:24:58 +0100 Subject: Fix issue #2040 Changing the query favorties/history would cause an UI inconsitency when the list was filtered before. --- Source/SPCustomQuery.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 94d1b355..216cafa8 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -3363,6 +3363,9 @@ if(numberOfHistoryItems>0) for(id historyMenuItem in [[SPQueryController sharedQueryController] historyMenuItemsForFileURL:[tableDocumentInstance fileURL]]) [historyMenu addItem:historyMenuItem]; + + // Reapply the filter + [self filterQueryHistory:nil]; } /** @@ -3431,6 +3434,9 @@ [menu addItem:item]; [item release]; } + + // Reapply the filter + [self filterQueryFavorites:nil]; } #endif -- cgit v1.2.3