Skip to content

Commit

Permalink
disable unimplemented tools in the Tools main menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Peterson committed Aug 13, 2014
1 parent e49bc24 commit 919c873
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Ext Chart/EXTDocumentWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,10 @@ - (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {
if ([(id)item respondsToSelector:@selector(setState:)]) {
[(id)item setState:([item tag] == self.selectedToolTag ? NSOnState : NSOffState)];
}

if ([item tag] == EXTToolTagMultiplicativeStructure ||
[item tag] == EXTToolTagMarquee)
return false;
}

return [self respondsToSelector:[item action]];
Expand Down

0 comments on commit 919c873

Please sign in to comment.