Revision: 16468
          http://sourceforge.net/p/skim-app/code/16468
Author:   hofman
Date:     2026-09-13 15:41:58 +0000 (Sun, 13 Sep 2026)
Log Message:
-----------
make bbracketing by flag setting clearer

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-09-13 15:27:21 UTC (rev 16467)
+++ trunk/SKMainWindowController.m      2026-09-13 15:41:58 UTC (rev 16468)
@@ -887,17 +887,16 @@
     CGFloat minWidth = fmin(MAX_MIN_COLUMN_WIDTH, 7.0 + [ov 
indentationPerLevel] * [outlineRoot deepestLevel]);
     [[ov tableColumnWithIdentifier:LABEL_COLUMNID] setMinWidth:minWidth];
     
-    mwcFlags.updatingOutlineSelection = 1;
-    
     // If this is a reload following a TeX run and the user just killed the 
outline for some reason, we get a crash if the outlineView isn't reloaded, so 
no longer make it conditional on pdfOutline != nil
-    [ov reloadData];
     if (outlineRoot) {
+        mwcFlags.updatingOutlineSelection = 1;
+        [ov reloadData];
         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;
+        [ov reloadData];
     }
     
     // handle the case as above where the outline has disappeared in a reload 
situation

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