From b31ea34c36ee7c5f5e2f17df2948524f2be33149 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 18 Mar 2014 02:55:11 +0100 Subject: [PATCH] fixed #158 Newly created entries now get the default username correctly set --- MacPass/MPDocument.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index df30de22..fa737827 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -433,7 +433,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey KPKEntry *newEntry = [self.tree createEntry:parent]; newEntry.title = NSLocalizedString(@"DEFAULT_ENTRY_TITLE", @"Title for a newly created entry"); if([self.tree.metaData.defaultUserName length] > 0) { - newEntry.title = self.tree.metaData.defaultUserName; + newEntry.username = self.tree.metaData.defaultUserName; } [parent addEntry:newEntry]; [parent.undoManager setActionName:NSLocalizedString(@"ADD_ENTRY", "")];