diff options
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:)) { |