Revision: 14773
          http://sourceforge.net/p/skim-app/code/14773
Author:   hofman
Date:     2024-11-30 17:26:01 +0000 (Sat, 30 Nov 2024)
Log Message:
-----------
compare ivar directly

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2024-11-30 17:23:46 UTC (rev 14772)
+++ trunk/SKMainWindowController.m      2024-11-30 17:26:01 UTC (rev 14773)
@@ -2001,14 +2001,14 @@
         [[statusBar progressIndicator] setDoubleValue:pageIndex + 1.0];
     if (pageIndex > 0 && pageIndex % 50 == 0) {
         mwcFlags.updatingFindResults = 1;
-        if ([self findPaneState] == SKFindPaneStateGrouped)
+        if (mwcFlags.findPaneState == SKFindPaneStateGrouped)
             [self didChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
-        if ([self findPaneState] == SKFindPaneStateSingular)
+        else
             [self didChangeValueForKey:SEARCHRESULTS_KEY];
         mwcFlags.updatingFindResults = 0;
-        if ([self findPaneState] == SKFindPaneStateSingular)
+        if (mwcFlags.findPaneState == SKFindPaneStateSingular)
             [self willChangeValueForKey:SEARCHRESULTS_KEY];
-        if ([self findPaneState] == SKFindPaneStateGrouped)
+        else
             [self willChangeValueForKey:GROUPEDSEARCHRESULTS_KEY];
     }
 }

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to