aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-09-30 22:17:25 +0000
committerrowanbeentje <rowan@beent.je>2009-09-30 22:17:25 +0000
commitb2b2b1b4e6451bd99f7894108a6c137da8f51e4d (patch)
tree22d04dd92e56af88ca56697f34724313ca99eb22 /Source
parent628c5e40844aa54baff93cfb5cafd5d2b473458a (diff)
downloadsequelpro-b2b2b1b4e6451bd99f7894108a6c137da8f51e4d.tar.gz
sequelpro-b2b2b1b4e6451bd99f7894108a6c137da8f51e4d.tar.bz2
sequelpro-b2b2b1b4e6451bd99f7894108a6c137da8f51e4d.zip
- Update history item name generation (for history menus) to add support for the BETWEEN filter
Diffstat (limited to 'Source')
-rw-r--r--Source/SPHistoryController.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m
index 242fd572..9277a64b 100644
--- a/Source/SPHistoryController.m
+++ b/Source/SPHistoryController.m
@@ -401,6 +401,16 @@
{
[theName appendFormat:@" (%@ %@ %@)", NSLocalizedString(@"Filtered by", @"History item filtered by label"),
[filterSettings objectForKey:@"filterField"], [filterSettings objectForKey:@"filterComparison"]];
+ } else if ([[filterSettings objectForKey:@"filterComparison"] isEqualToString:@"BETWEEN"]
+ && [filterSettings objectForKey:@"firstBetweenField"]
+ && [[filterSettings objectForKey:@"secondBetweenField"] length]
+ && [filterSettings objectForKey:@"firstBetweenField"]
+ && [[filterSettings objectForKey:@"secondBetweenField"] length])
+ {
+ [theName appendFormat:NSLocalizedString(@" (Filtered by %@ between %@ and %@)", @"History item filtered between values label"),
+ [filterSettings objectForKey:@"filterField"],
+ [filterSettings objectForKey:@"firstBetweenField"],
+ [filterSettings objectForKey:@"secondBetweenField"]];
} else if ([filterSettings objectForKey:@"filterValue"] && [[filterSettings objectForKey:@"filterValue"] length]) {
[theName appendFormat:@" (%@ %@ %@ %@)", NSLocalizedString(@"Filtered by", @"History item filtered by label"),
[filterSettings objectForKey:@"filterField"], [filterSettings objectForKey:@"filterComparison"],