diff options
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r-- | Source/CMTextView.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m index da6e708b..b8392e30 100644 --- a/Source/CMTextView.m +++ b/Source/CMTextView.m @@ -2352,6 +2352,14 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse) // Hide "Select Active Query" if self is not editable [[menu itemAtIndex:4] setHidden:![self isEditable]]; + if([[[self window] delegate] valueForKeyPath:@"customQueryInstance"]) { + [[menu itemAtIndex:5] setHidden:NO]; + [[menu itemAtIndex:6] setHidden:NO]; + } else { + [[menu itemAtIndex:5] setHidden:YES]; + [[menu itemAtIndex:6] setHidden:YES]; + } + return menu; } |