Revision: 28748
          http://sourceforge.net/p/bibdesk/svn/28748
Author:   hofman
Date:     2024-02-16 17:53:53 +0000 (Fri, 16 Feb 2024)
Log Message:
-----------
remove previous commit, texTask may still be needed for promised types

Modified Paths:
--------------
    trunk/bibdesk/BDSKItemPasteboardHelper.m

Modified: trunk/bibdesk/BDSKItemPasteboardHelper.m
===================================================================
--- trunk/bibdesk/BDSKItemPasteboardHelper.m    2024-02-16 17:28:31 UTC (rev 
28747)
+++ trunk/bibdesk/BDSKItemPasteboardHelper.m    2024-02-16 17:53:53 UTC (rev 
28748)
@@ -99,10 +99,6 @@
             }];
         }
         delegate = newDelegate;
-        if (delegate == nil && texTask) {
-            [texTask terminate];
-            texTask = nil;
-        }
     }
 }
 
@@ -292,14 +288,10 @@
             } else {
                 BDSKTeXTask *currentTask = [texTasks objectForKey:pbName];
                 if (currentTask) {
-                    if (currentTask != texTask) {
-                        [currentTask terminate];
-                    } else if (delegate) {
+                    if (currentTask == texTask)
                         [currentTask cancel];
-                    } else {
+                    else
                         [currentTask terminate];
-                        texTask = nil;
-                    }
                     [texTasks removeObjectForKey:pbName];
                 }
                 [dict removeObjectForKey:TEXTASKRESULT_KEY];
@@ -317,14 +309,10 @@
         NSString *pbName = [pboard name];
         BDSKTeXTask *currentTask = [texTasks objectForKey:pbName];
         if (currentTask) {
-            if (currentTask != texTask) {
-                [currentTask terminate];
-            } else if (delegate) {
+            if (currentTask == texTask)
                 [currentTask cancel];
-            } else {
+            else
                 [currentTask terminate];
-                texTask = nil;
-            }
             [texTasks removeObjectForKey:pbName];
         }
         [promisedPboardTypes removeObjectForKey:pbName];

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to