Revision: 21374
          http://sourceforge.net/p/bibdesk/svn/21374
Author:   hofman
Date:     2017-04-06 18:57:59 +0000 (Thu, 06 Apr 2017)
Log Message:
-----------
only notify delegate when the fileURL changes

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

Modified: trunk/bibdesk/BDSKLinkedFile.m
===================================================================
--- trunk/bibdesk/BDSKLinkedFile.m      2017-04-06 18:44:48 UTC (rev 21373)
+++ trunk/bibdesk/BDSKLinkedFile.m      2017-04-06 18:57:59 UTC (rev 21374)
@@ -613,6 +613,8 @@
                     [self setFileRef:&aRef];
                     [fileURL release];
                     fileURL = aURL;
+                    if (isInitial == NO)
+                        [delegate 
performSelector:@selector(linkedFileURLChanged:) withObject:self 
afterDelay:0.0];
                 }
             }
             if (needsUpdate) {
@@ -620,8 +622,6 @@
                     [self updateWithPath:aPath basePath:basePath 
baseRef:&aRef];
                 else
                     [self updateAliasWithPath:aPath basePath:basePath];
-                if (isInitial == NO)
-                    [delegate performSelector:@selector(linkedFileURLChanged:) 
withObject:self afterDelay:0.0];
             }
         }
     }

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


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to