Revision: 14078
          http://sourceforge.net/p/skim-app/code/14078
Author:   hofman
Date:     2024-02-29 10:31:30 +0000 (Thu, 29 Feb 2024)
Log Message:
-----------
remove observer for selectionIndexPaths together with other observers

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-02-29 10:18:25 UTC (rev 14077)
+++ trunk/SKMainWindowController.m      2024-02-29 10:31:30 UTC (rev 14078)
@@ -276,7 +276,6 @@
         [[NSProcessInfo processInfo] endActivity:activity];
         activity = nil;
     }
-    [overviewView removeObserver:self forKeyPath:@"selectionIndexPaths" 
context:&SKMainWindowThumbnailSelectionObservationContext];
     [[NSNotificationCenter defaultCenter] removeObserver:self];
     [self stopObservingNotes:[self notes]];
     [self clearWidgets];
@@ -2467,6 +2466,10 @@
         @try { [mainWindow removeObserver:self forKeyPath:@"contentLayoutRect" 
context:&SKMainWindowContentLayoutObservationContext]; }
         @catch (id e) {}
     }
+    if (overviewView) {
+        @try { [overviewView removeObserver:self 
forKeyPath:@"selectionIndexPaths" 
context:&SKMainWindowThumbnailSelectionObservationContext]; }
+        @catch (id e) {}
+    }
 }
 
 #pragma mark Undo

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to