aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryConsole.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPQueryConsole.m')
-rw-r--r--Source/SPQueryConsole.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m
index ffae7479..7b7edccb 100644
--- a/Source/SPQueryConsole.m
+++ b/Source/SPQueryConsole.m
@@ -306,14 +306,12 @@ static SPQueryConsole *sharedQueryConsole = nil;
* Menu item validation for console table view contextual menu.
*/
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
-{
- BOOL validate = NO;
-
+{
if ([menuItem action] == @selector(copy:)) {
- validate = ([consoleTableView numberOfSelectedRows] > 0);
+ return ([consoleTableView numberOfSelectedRows] > 0);
}
- return validate;
+ return [[self window] validateMenuItem:menuItem];
}
/**