Merged deleteGroup and deleteEntry call into delteNode

This commit is contained in:
michael starke
2015-12-14 20:06:41 +01:00
parent acbb5605f4
commit c7a6ad19dc
3 changed files with 34 additions and 52 deletions

View File

@@ -382,7 +382,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
if(entry) {
return entry;
}
MPDocument *document = [[self windowController] document];
MPDocument *document = self.windowController.document;
return document.selectedItem;
}
@@ -702,8 +702,9 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
if(!entry) {
return;
}
MPDocument *document = [[self windowController] document];
[document deleteEntry:entry];
MPDocument *document = self.windowController.document;
[document deleteNode:entry];
}