aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPQueryConsole.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-03-30 11:03:10 +0000
committerstuconnolly <stuart02@gmail.com>2009-03-30 11:03:10 +0000
commit502a20d95b674f2477c85f2056af26a22838781f (patch)
treeeeabffc6dcb577df03730c29219cbcbe855304da /Source/SPQueryConsole.m
parent41ada255b224dea287dcd178e8840f6869f6ad10 (diff)
downloadsequelpro-502a20d95b674f2477c85f2056af26a22838781f.tar.gz
sequelpro-502a20d95b674f2477c85f2056af26a22838781f.tar.bz2
sequelpro-502a20d95b674f2477c85f2056af26a22838781f.zip
Fix 'Clear Console' menu item, which was disabled because of missing 'clearConsole:' method in TableDocument.m.
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];
}
/**