Added removed validation but calling into central document function, since the responder needs to validate the menu items #112

This commit is contained in:
michael starke
2013-11-23 21:34:10 +01:00
parent 582bc52532
commit 7c103abd53
4 changed files with 31 additions and 4 deletions

View File

@@ -568,6 +568,16 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
self.trashBar.inactiveGradient = [[NSGradient alloc] initWithColors:inactiveColors];
}
#pragma mark Validation
- (BOOL)validateMenuItem:(NSMenuItem *)menuItem {
MPDocument *document = [[self windowController] document];
if(![document validateMenuItem:menuItem]) {
return NO;
}
return YES;
/* TODO handle _clickedOrSlectedEnty */
}
#pragma mark ContextMenu
- (void)_setupEntryMenu {