From 43e667a157d35beaa09a5c297cf41524a555a85b Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Wed, 9 Feb 2022 15:52:40 +0100 Subject: [PATCH] Enabled version browsing when database is locked --- MacPass/MPDocument.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 68cb8060..61f99049 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -888,8 +888,12 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGrou KPKEntry *targetEntry = targetEntries.count == 1 ? targetEntries.firstObject : nil; KPKGroup *targetGroup = targetGroups.count == 1 ? targetGroups.firstObject : nil; - + if(self.encrypted || self.isReadOnly) { + if(anItem.action == @selector(revertDocumentToSaved:) || + anItem.action == @selector(browseDocumentVersions:)) { + return YES; + } return NO; }