From bf4a5566109942b94919d06f8a0edcacf68ceeb0 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Wed, 18 Nov 2009 17:58:05 +0000 Subject: When clearning the query history drop down only remove items from index 3 onwards to prevent removing the separator. --- Source/CustomQuery.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 90bf011a..7eb04203 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -256,8 +256,8 @@ // "Clear History" menu item - clear query history if (sender == clearHistoryMenuItem) { - // Remove all history buttons except the search field beginning from the end - while([queryHistoryButton numberOfItems] > 2) + // Remove all history buttons except the search field and separator beginning from the end + while([queryHistoryButton numberOfItems] > 3) [queryHistoryButton removeItemAtIndex:[queryHistoryButton numberOfItems]-1]; // Remove all items from the queryController -- cgit v1.2.3