From 5ce7a777259ba2dec699c97634ece9213802713c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 1 Feb 2010 14:20:55 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Added=20basic=20print=20support=20for=20eac?= =?UTF-8?q?h=20CMTextView=20=E2=80=A2=20first=20steps=20to=20renew=20the?= =?UTF-8?q?=20field=20mapper=20sheet=20for=20CSV=20Import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/TableDocument.m') 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:)) { -- cgit v1.2.3