aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CMTextView.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-07 21:40:06 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-07 21:40:06 +0000
commitda1616e9c31fd922fef7ed567a28dfdd788bcb0c (patch)
treeb2f1fb8a59bbcb7422838feae04b9c5327446ee0 /Source/CMTextView.m
parent7ce154492f0e307644b66a3d2410a255345d86db (diff)
downloadsequelpro-da1616e9c31fd922fef7ed567a28dfdd788bcb0c.tar.gz
sequelpro-da1616e9c31fd922fef7ed567a28dfdd788bcb0c.tar.bz2
sequelpro-da1616e9c31fd922fef7ed567a28dfdd788bcb0c.zip
• improved "Copy as SQL INSERT" (still hidden)
• disabled "Copy with Column Names" if Custom Query editor is active
Diffstat (limited to 'Source/CMTextView.m')
-rw-r--r--Source/CMTextView.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index d15a9f5b..ddb26f32 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -2382,7 +2382,7 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
long stringSize = [self getRangeForCurrentWord].length;
return (stringSize || stringSize > 64);
}
- // Enable Copy as RTF if soemthing is selected
+ // Enable Copy as RTF if something is selected
if ([menuItem action] == @selector(copyAsRTF)) {
return ([self selectedRange].length>0);
}
@@ -2390,6 +2390,13 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
if ([menuItem action] == @selector(selectCurrentQuery)) {
return ([self isEditable]);
}
+ // Disable "Copy with Column Names" and "Copy as SQL INSERT"
+ // in the main menu
+ if ( [menuItem tag] == MENU_EDIT_COPY_WITH_COLUMN
+ || [menuItem tag] == MENU_EDIT_COPY_AS_SQL ) {
+ return NO;
+ }
+
return YES;
}