aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-01 14:20:55 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-01 14:20:55 +0000
commit5ce7a777259ba2dec699c97634ece9213802713c (patch)
treea25a06876b296fdb827da6716b0156f1ad050c28 /Source/TableDocument.m
parentace1750e49cc8846b57f542dabc207c4579283f5 (diff)
downloadsequelpro-5ce7a777259ba2dec699c97634ece9213802713c.tar.gz
sequelpro-5ce7a777259ba2dec699c97634ece9213802713c.tar.bz2
sequelpro-5ce7a777259ba2dec699c97634ece9213802713c.zip
• Added basic print support for each CMTextView
• first steps to renew the field mapper sheet for CSV Import
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index c8834af3..2502f984 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2926,7 +2926,12 @@
}
if ([menuItem action] == @selector(printDocument:)) {
- return ([self database] != nil && [[tablesListInstance valueForKeyPath:@"tablesListView"] numberOfSelectedRows] == 1);
+ return (
+ (
+ [self database] != nil
+ && [[tablesListInstance valueForKeyPath:@"tablesListView"] numberOfSelectedRows] == 1
+ )
+ || [tableWindow firstResponder] == customQueryInstance);
}
if ([menuItem action] == @selector(chooseEncoding:)) {