aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m4
1 files 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