Revision: 15400 http://sourceforge.net/p/skim-app/code/15400 Author: hofman Date: 2025-06-07 21:25:14 +0000 (Sat, 07 Jun 2025) Log Message: ----------- top observing document when unlocking
Modified Paths: -------------- trunk/SKSecondaryPDFView.m Modified: trunk/SKSecondaryPDFView.m =================================================================== --- trunk/SKSecondaryPDFView.m 2025-06-07 21:06:59 UTC (rev 15399) +++ trunk/SKSecondaryPDFView.m 2025-06-07 21:25:14 UTC (rev 15400) @@ -124,7 +124,7 @@ } - (void)setDocument:(PDFDocument *)document { - if ([self document]) + if ([self document] && [[self document] isLocked]) [[NSNotificationCenter defaultCenter] removeObserver:self name:PDFDocumentDidUnlockNotification object:[self document]]; BOOL savedSwitching = switching; switching = YES; @@ -808,6 +808,7 @@ - (void)handleDocumentDidUnlockNotification:(NSNotification *)notification { [self reloadPagePopUpButton]; + [[NSNotificationCenter defaultCenter] removeObserver:self name:PDFDocumentDidUnlockNotification object:[self document]]; } - (void)handlePDFViewScaleChangedNotification:(NSNotification *)notification { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit