mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 12:19:52 +00:00
Fixed crash on 10.8 and 10.9 caused by MPToolbarButton
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//
|
||||
|
||||
#import "MPReferenceBuilderViewController.h"
|
||||
#import "KPKReferenceKeys.h"
|
||||
|
||||
@interface MPReferenceBuilderViewController ()
|
||||
|
||||
@@ -40,7 +41,7 @@
|
||||
if(allowCustomAttributes) {
|
||||
[menu addItemWithTitle:NSLocalizedString(@"CUSTOM_ATTRIBUTE","") action:NULL keyEquivalent:@""];
|
||||
}
|
||||
NSArray *keys = @[ @"I", @"T", @"U", @"P", @"A", @"N", @"S" ];
|
||||
NSArray *keys = @[ kKPKReferenceUUIDKey, kKPKReferenceTitleKey, kKPKReferenceUsernameKey, kKPKReferencePasswordKey, kKPKReferenceURLKey, kKPKReferenceNotesKey, @"S" ];
|
||||
[menu.itemArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
|
||||
NSMenuItem *item = (NSMenuItem *)obj;
|
||||
NSAssert(keys.count > idx, @"");
|
||||
|
||||
Reference in New Issue
Block a user