diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-01 14:20:55 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-01 14:20:55 +0000 |
commit | 5ce7a777259ba2dec699c97634ece9213802713c (patch) | |
tree | a25a06876b296fdb827da6716b0156f1ad050c28 /Source/TableDocument.m | |
parent | ace1750e49cc8846b57f542dabc207c4579283f5 (diff) | |
download | sequelpro-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.m | 7 |
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:)) { |