aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CustomQuery.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 5886471f..90bf011a 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -617,11 +617,11 @@
[[SPQueryController sharedQueryController] addHistory:usedQuery forFileURL:[tableDocumentInstance fileURL]];
// Add it to the document's current popup list
- [queryHistoryButton insertItemWithTitle:usedQuery atIndex:2];
+ [queryHistoryButton insertItemWithTitle:usedQuery atIndex:3];
// Check for max history
NSUInteger maxHistoryItems = [[prefs objectForKey:SPCustomQueryMaxHistoryItems] intValue];
- while ( [queryHistoryButton numberOfItems] > maxHistoryItems + 2 )
+ while ( [queryHistoryButton numberOfItems] > maxHistoryItems + 3 )
[queryHistoryButton removeItemAtIndex:[queryHistoryButton numberOfItems]-1];
}