Revision: 2857
          http://skim-app.svn.sourceforge.net/skim-app/?rev=2857&view=rev
Author:   hofman
Date:     2007-09-09 07:02:24 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
Don't let reloading the outline change the current page.

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2007-09-09 13:26:40 UTC (rev 2856)
+++ trunk/SKMainWindowController.m      2007-09-09 14:02:24 UTC (rev 2857)
@@ -776,10 +776,11 @@
     pdfOutline = [[pdfDoc outlineRoot] retain];
     [pdfOutlineItems removeAllObjects];
     if (pdfOutline) {
+        updatingOutlineSelection = YES;
         [outlineView reloadData];
-        
         if ([outlineView numberOfRows] == 1)
             [outlineView expandItem: [outlineView itemAtRow: 0] 
expandChildren: NO];
+        updatingOutlineSelection = NO;
         [self updateOutlineSelection];
     }
     [leftSideButton setEnabled:pdfOutline != nil 
forSegment:SKOutlineSidePaneState];


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to