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];
[view.protectedButton bind:NSValueBinding
toObject:view
withKeyPath:@"objectValue.isProtected"
withKeyPath:@"objectValue.protected"
options:nil];
[view.valueTextField bind:NSStringFromSelector(@selector(showPassword))
toObject:view
withKeyPath:@"objectValue.isProtected"
withKeyPath:@"objectValue.protected"
options:@{NSValueTransformerNameBindingOption: NSNegateBooleanTransformerName}];