aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/CMTextView.m8
-rw-r--r--Source/TableDocument.m2
2 files changed, 9 insertions, 1 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;
}
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 6804e5a4..ca89d597 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2196,7 +2196,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
if (sshTunnel) [sshTunnel disconnect], [sshTunnel release], sshTunnel = nil;
if ([[[SPQueryConsole sharedQueryConsole] window] isVisible]) [self toggleConsole:self];
[[customQueryInstance helpWebViewWindow] release];
- [createTableSyntaxWindow release];
+ [createTableSyntaxWindow orderOut:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
}