diff options
author | stuconnolly <stuart02@gmail.com> | 2009-11-18 17:58:05 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-11-18 17:58:05 +0000 |
commit | bf4a5566109942b94919d06f8a0edcacf68ceeb0 (patch) | |
tree | dcb46cf265ce5ee0adcc692022803cb8f3cf3b8e /Source | |
parent | 71553a4723d452272210ac189e07cd017a5cf278 (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/CustomQuery.m | 4 |
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 |