Revision: 15987
          http://sourceforge.net/p/skim-app/code/15987
Author:   hofman
Date:     2026-01-09 16:12:25 +0000 (Fri, 09 Jan 2026)
Log Message:
-----------
only rset hasOutline when there was a sim note

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

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-01-09 16:09:42 UTC (rev 15986)
+++ trunk/SKMainWindowController_UI.m   2026-01-09 16:12:25 UTC (rev 15987)
@@ -2083,11 +2083,13 @@
 }
 
 - (void)handleCurrentAnnotationChangedNotification:(NSNotification 
*)notification {
-    PDFAnnotation *annotation = [pdfView currentAnnotation];
+    PDFAnnotation *annotation = [[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey];
     SKNoteOutlineView *ov = rightSideController.noteOutlineView;
     
-    [self setHasOutline:NO forAnnotation:[[notification userInfo] 
objectForKey:SKPDFViewAnnotationKey]];
+    if ([annotation isSkimNote])
+        [self setHasOutline:NO forAnnotation:annotation];
     
+    annotation = [pdfView currentAnnotation];
     if ([[self window] isMainWindow])
         [self updateUtilityPanel];
     if ([annotation isSkimNote]) {

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