Revision: 14422
          http://sourceforge.net/p/skim-app/code/14422
Author:   hofman
Date:     2024-08-15 21:19:13 +0000 (Thu, 15 Aug 2024)
Log Message:
-----------
we should never have hanging reset of temp tool mode when it does mnot change

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2024-08-15 21:17:40 UTC (rev 14421)
+++ trunk/SKPDFView.m   2024-08-15 21:19:13 UTC (rev 14422)
@@ -674,8 +674,8 @@
 }
 
 - (void)setTemporaryToolMode:(SKTemporaryToolMode)newTemporaryToolMode {
-    [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(resetTemporaryToolMode) object:nil];
     if (temporaryToolMode != newTemporaryToolMode) {
+        [[self class] cancelPreviousPerformRequestsWithTarget:self 
selector:@selector(resetTemporaryToolMode) object:nil];
         temporaryToolMode = newTemporaryToolMode;
         [[NSNotificationCenter defaultCenter] 
postNotificationName:SKPDFViewTemporaryToolModeChangedNotification object:self];
     }

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