mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 19:22:25 +00:00
duplicate entries now works for single and multiple selected entries
This commit is contained in:
@@ -667,11 +667,11 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
|
||||
}
|
||||
|
||||
- (void)duplicateEntry:(id)sender {
|
||||
/*
|
||||
KPKEntry *duplicate = [self.selectedEntry copyWithTitle:nil options:kKPKCopyOptionNone];
|
||||
[duplicate addToGroup:self.selectedEntry.parent];
|
||||
[self.undoManager setActionName:NSLocalizedString(@"DUPLICATE_ENTRY", "")];
|
||||
*/
|
||||
for(KPKEntry *entry in self.selectedEntries) {
|
||||
KPKEntry *duplicate = [entry copyWithTitle:nil options:kKPKCopyOptionNone];
|
||||
[duplicate addToGroup:entry.parent];
|
||||
}
|
||||
[self.undoManager setActionName:NSLocalizedString(@"DUPLICATE_ENTRY", "")];
|
||||
}
|
||||
|
||||
- (void)duplicateEntryWithOptions:(id)sender {
|
||||
|
||||
Reference in New Issue
Block a user