From 797733130ff3afda5ecc90e8abe92c39edbd4fb3 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 12 Jan 2021 17:36:50 +0100 Subject: [PATCH] Fixed regression introduced with e3352efe49abb5e6a126fd40c222095bc1243c7d resulting in no password display after reverting a document --- MacPass/MPDocumentWindowController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 59efcaf7..362644ad 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -108,6 +108,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword); MPDocument *document = self.document; + [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_didRevertDocument:) name:MPDocumentDidRevertNotifiation object:document]; [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_didUnlockDatabase:) name:MPDocumentDidUnlockDatabaseNotification object:document]; [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_didAddEntry:) name:MPDocumentDidAddEntryNotification object:document]; [NSNotificationCenter.defaultCenter addObserver:self selector:@selector(_didAddGroup:) name:MPDocumentDidAddGroupNotification object:document];