duplicate entries now works for single and multiple selected entries

This commit is contained in:
michael starke
2017-04-13 19:24:23 +02:00
parent 14285bf9af
commit aec3fbea51

View File

@@ -667,11 +667,11 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou
} }
- (void)duplicateEntry:(id)sender { - (void)duplicateEntry:(id)sender {
/* for(KPKEntry *entry in self.selectedEntries) {
KPKEntry *duplicate = [self.selectedEntry copyWithTitle:nil options:kKPKCopyOptionNone]; KPKEntry *duplicate = [entry copyWithTitle:nil options:kKPKCopyOptionNone];
[duplicate addToGroup:self.selectedEntry.parent]; [duplicate addToGroup:entry.parent];
[self.undoManager setActionName:NSLocalizedString(@"DUPLICATE_ENTRY", "")]; }
*/ [self.undoManager setActionName:NSLocalizedString(@"DUPLICATE_ENTRY", "")];
} }
- (void)duplicateEntryWithOptions:(id)sender { - (void)duplicateEntryWithOptions:(id)sender {