aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 287bd227..4cf7b155 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -2296,7 +2296,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
}
// Validate Select Active Query
if ([menuItem action] == @selector(selectCurrentQuery)) {
- return ([self isEditable]);
+ return ([self isEditable] && [[self delegate] isKindOfClass:[CustomQuery class]]);
}
// Disable "Copy with Column Names" and "Copy as SQL INSERT"
// in the main menu