diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableDocument.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 2d972e60..6f839fe7 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3274,6 +3274,11 @@ if ([identifier isEqualToString:@"ClearConsoleIdentifier"]) { return ([[SPQueryController sharedQueryController] consoleMessageCount] > 0); } + + if (![identifier isEqualToString:@"SwitchToRunQueryToolbarItemIdentifier"]) { + return (([tablesListInstance tableType] == SP_TABLETYPE_TABLE) || + ([tablesListInstance tableType] == SP_TABLETYPE_VIEW)); + } return YES; } |