Fixed crash on entries with custom attributes

This commit is contained in:
Michael Starke
2018-06-12 12:07:10 +02:00
parent feedcd56ac
commit 14ac7ed675

View File

@@ -63,12 +63,12 @@ NSInteger MPCustomFieldIndexFromTag(NSInteger tag) {
options:nil]; options:nil];
[view.protectedButton bind:NSValueBinding [view.protectedButton bind:NSValueBinding
toObject:view toObject:view
withKeyPath:@"objectValue.isProtected" withKeyPath:@"objectValue.protected"
options:nil]; options:nil];
[view.valueTextField bind:NSStringFromSelector(@selector(showPassword)) [view.valueTextField bind:NSStringFromSelector(@selector(showPassword))
toObject:view toObject:view
withKeyPath:@"objectValue.isProtected" withKeyPath:@"objectValue.protected"
options:@{NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName}]; options:@{NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName}];