Revision: 16268
          http://sourceforge.net/p/skim-app/code/16268
Author:   hofman
Date:     2026-05-10 15:41:52 +0000 (Sun, 10 May 2026)
Log Message:
-----------
don't other updatting outline selections when no outlineroot

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-05-10 15:38:40 UTC (rev 16267)
+++ trunk/SKMainWindowController.m      2026-05-10 15:41:52 UTC (rev 16268)
@@ -879,9 +879,11 @@
     if (outlineRoot) {
         NSInteger level = [[NSUserDefaults standardUserDefaults] 
boolForKey:SKCollapseTOCSublevelsKey] ? ([outlineRoot numberOfChildren] > 1) : 
-1;
         [self expandOutline:outlineRoot forExpansionState:info level:level];
+        mwcFlags.updatingOutlineSelection = 0;
+        [self updateTocSelectionHighlights];
+    } else {
+        mwcFlags.updatingOutlineSelection = 0;
     }
-    mwcFlags.updatingOutlineSelection = 0;
-    [self updateTocSelectionHighlights];
     
     // handle the case as above where the outline has disappeared in a reload 
situation
     if (nil == outlineRoot)

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