add revertToHistoryEntry action

This commit is contained in:
michael starke
2017-04-24 12:09:11 +02:00
parent 420f325dc1
commit d65c548f64
7 changed files with 22 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ NSString *const MPDocumentHideEntryHistoryNotification = @"MPDocumentHideEntryH
object:self];
}
- (void)restoreEntry:(KPKEntry *)entry toEntry:(KPKEntry *)historyEntry {
- (void)revertEntry:(KPKEntry *)entry toEntry:(KPKEntry *)historyEntry {
[entry revertToEntry:historyEntry];
[self.undoManager setActionName:NSLocalizedString(@"RESTORE_HISTORY_ENTRY", "Action to restore and Entry to a previous state of it's history")];
}