Revision: 16267
          http://sourceforge.net/p/skim-app/code/16267
Author:   hofman
Date:     2026-05-10 15:38:40 +0000 (Sun, 10 May 2026)
Log Message:
-----------
set updatingoutlineselectionflag in gotoselectedoutlineitem, it should also be 
ignored for doubleclick

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

Modified: trunk/SKMainWindowController_Actions.m
===================================================================
--- trunk/SKMainWindowController_Actions.m      2026-05-10 08:22:56 UTC (rev 
16266)
+++ trunk/SKMainWindowController_Actions.m      2026-05-10 15:38:40 UTC (rev 
16267)
@@ -243,10 +243,12 @@
 
 - (void)goToSelectedOutlineItem:(id)sender {
     PDFOutline *outlineItem = [leftSideController.tocOutlineView 
itemAtRow:[leftSideController.tocOutlineView selectedRow]];
+    mwcFlags.updatingOutlineSelection = 1;
     if ([outlineItem action])
         [pdfView performAction:[outlineItem action]];
     else if ([outlineItem destination])
         [pdfView goToDestination:[outlineItem destination]];
+    mwcFlags.updatingOutlineSelection = 0;
     if ([self interactionMode] == SKPresentationMode) {
         PDFPage *page = [outlineItem page];
         if (page) {

Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m   2026-05-10 08:22:56 UTC (rev 16266)
+++ trunk/SKMainWindowController_UI.m   2026-05-10 15:38:40 UTC (rev 16267)
@@ -978,9 +978,7 @@
 - (void)outlineViewSelectionDidChange:(NSNotification *)notification{
        // Get the destination associated with the search result list. Tell the 
PDFView to go there.
        if ([[notification object] isEqual:leftSideController.tocOutlineView] 
&& (mwcFlags.updatingOutlineSelection == 0)){
-        mwcFlags.updatingOutlineSelection = 1;
         [self goToSelectedOutlineItem:nil];
-        mwcFlags.updatingOutlineSelection = 0;
     }
 }
 

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