aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-18 17:58:05 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-18 17:58:05 +0000
commitbf4a5566109942b94919d06f8a0edcacf68ceeb0 (patch)
treedcb46cf265ce5ee0adcc692022803cb8f3cf3b8e /Source/CustomQuery.m
parent71553a4723d452272210ac189e07cd017a5cf278 (diff)
downloadsequelpro-bf4a5566109942b94919d06f8a0edcacf68ceeb0.tar.gz
sequelpro-bf4a5566109942b94919d06f8a0edcacf68ceeb0.tar.bz2
sequelpro-bf4a5566109942b94919d06f8a0edcacf68ceeb0.zip
When clearning the query history drop down only remove items from index 3 onwards to prevent removing the separator.
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