aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index f465628c..427e73fd 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2674,6 +2674,10 @@
return ([self database] != nil && [self table] != nil);
}
+ if ([menuItem action] == @selector(printDocument:)) {
+ return ([self database] != nil && [[tablesListInstance valueForKeyPath:@"tablesListView"] numberOfSelectedRows] == 1);
+ }
+
if ([menuItem action] == @selector(chooseEncoding:)) {
return [self supportsEncoding];
}