aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index c4f60029..6b8ecf0e 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -1061,11 +1061,14 @@
NSDictionary *filter = [[contentFilters objectForKey:compareType] objectAtIndex:lastSelectedContentFilterIndex];
NSUInteger numOfArgs = [[filter objectForKey:@"NumberOfArguments"] intValue];
- if ([[filter objectForKey:@"NumberOfArguments"] intValue] == 2) {
+ if (numOfArgs == 2) {
[argumentField setHidden:YES];
- if(numOfArgs == 1)
+ if([filter objectForKey:@"ConjunctionLabels"] && [[filter objectForKey:@"ConjunctionLabels"] count] == 1)
[betweenTextField setStringValue:[[filter objectForKey:@"ConjunctionLabels"] objectAtIndex:0]];
+ else
+ [betweenTextField setStringValue:@""];
+
[betweenTextField setHidden:NO];
[firstBetweenField setHidden:NO];
[secondBetweenField setHidden:NO];