diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-10-14 15:07:25 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-10-14 15:07:25 +0000 |
commit | 0eb001d5b887776b827d503568921f6230bf862a (patch) | |
tree | 5836b41c3fcb7506f21769eaf59000d98bd3661e /Source/TableDocument.m | |
parent | 080b6b90f0021d6f58090cc19f268f8f0df86351 (diff) | |
download | sequelpro-0eb001d5b887776b827d503568921f6230bf862a.tar.gz sequelpro-0eb001d5b887776b827d503568921f6230bf862a.tar.bz2 sequelpro-0eb001d5b887776b827d503568921f6230bf862a.zip |
• added AppleScript support for "make new document"
• fixed validation of the main menu item "Print" - only enabled if one table is selected (otherwise it throws an exception)
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 4 |
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]; } |