aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPWindowController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index e5e2ca13..1a90592c 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -265,9 +265,6 @@
- (BOOL) validateMenuItem:(NSMenuItem *)menuItem
{
- // See if the front document blocks validation of this item
- if (![selectedTableDocument validateMenuItem:menuItem]) return NO;
-
// Select Next/Previous/Move Tab
if ( [menuItem action] == @selector(selectPreviousDocumentTab:)
|| [menuItem action] == @selector(selectNextDocumentTab:)
@@ -276,6 +273,9 @@
return ([tabView numberOfTabViewItems] != 1);
}
+ // See if the front document blocks validation of this item
+ if (![selectedTableDocument validateMenuItem:menuItem]) return NO;
+
return YES;
}