Fixed more issues with sheets being displayed when database is locked

This commit is contained in:
michael starke
2017-10-18 16:26:51 +02:00
parent 5c240ded7f
commit c4bd138ecb
3 changed files with 9 additions and 3 deletions

View File

@@ -661,7 +661,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
- (KPKAttribute *)createCustomAttribute:(KPKEntry *)entry {
NSString *title = NSLocalizedString(@"DEFAULT_CUSTOM_FIELD_TITLE", @"Default Titel for new Custom-Fields");
NSString *value = NSLocalizedString(@"DEFAULT_CUSTOM_FIELD_VALUE", @"Default Value for new Custom-Fields");
title = [entry proposedKeyForAttributeKey:title];
KPKAttribute *newAttribute = [[KPKAttribute alloc] initWithKey:title value:value];
[entry addCustomAttribute:newAttribute];
return newAttribute;