mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 21:13:35 +00:00
fixed #158 Newly created entries now get the default username correctly set
This commit is contained in:
@@ -433,7 +433,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey
|
|||||||
KPKEntry *newEntry = [self.tree createEntry:parent];
|
KPKEntry *newEntry = [self.tree createEntry:parent];
|
||||||
newEntry.title = NSLocalizedString(@"DEFAULT_ENTRY_TITLE", @"Title for a newly created entry");
|
newEntry.title = NSLocalizedString(@"DEFAULT_ENTRY_TITLE", @"Title for a newly created entry");
|
||||||
if([self.tree.metaData.defaultUserName length] > 0) {
|
if([self.tree.metaData.defaultUserName length] > 0) {
|
||||||
newEntry.title = self.tree.metaData.defaultUserName;
|
newEntry.username = self.tree.metaData.defaultUserName;
|
||||||
}
|
}
|
||||||
[parent addEntry:newEntry];
|
[parent addEntry:newEntry];
|
||||||
[parent.undoManager setActionName:NSLocalizedString(@"ADD_ENTRY", "")];
|
[parent.undoManager setActionName:NSLocalizedString(@"ADD_ENTRY", "")];
|
||||||
|
|||||||
Reference in New Issue
Block a user