Revision: 26790 http://sourceforge.net/p/bibdesk/svn/26790 Author: hofman Date: 2021-09-02 14:30:20 +0000 (Thu, 02 Sep 2021) Log Message: ----------- Don't update alias and relative path twice when linked file path has changed, e.g. after auto filing
Modified Paths: -------------- trunk/bibdesk/BDSKLinkedFile.m Modified: trunk/bibdesk/BDSKLinkedFile.m =================================================================== --- trunk/bibdesk/BDSKLinkedFile.m 2021-09-02 06:30:23 UTC (rev 26789) +++ trunk/bibdesk/BDSKLinkedFile.m 2021-09-02 14:30:20 UTC (rev 26790) @@ -729,7 +729,9 @@ } else { NSURL *aURL = BDSKCreateURLFromFSRef(fileRef); if (aURL != nil) { - [self updateWithPath:[aURL path] basePath:basePath]; + // if the path has changed, updating will be done below + if (aPath == nil || [[aURL path] isEqualToString:aPath]) + [self updateWithPath:[aURL path] basePath:basePath]; [aURL release]; } else { // the fileRef was invalid, reset it and update This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit