Revision: 26830 http://sourceforge.net/p/bibdesk/svn/26830 Author: hofman Date: 2021-09-08 18:41:14 +0000 (Wed, 08 Sep 2021) Log Message: ----------- Check baxePath first, otherwise we won't update
Modified Paths: -------------- trunk/bibdesk/BDSKLinkedFile.m Modified: trunk/bibdesk/BDSKLinkedFile.m =================================================================== --- trunk/bibdesk/BDSKLinkedFile.m 2021-09-08 17:19:52 UTC (rev 26829) +++ trunk/bibdesk/BDSKLinkedFile.m 2021-09-08 18:41:14 UTC (rev 26830) @@ -835,16 +835,16 @@ NSURL *aURL = [self newPathURL]; if (aURL != nil) { // if the path has changed, updating will be done below - if (aPath == nil || [[aURL path] isEqualToString:aPath]) { - if (wantsBookmark == NO) { + if (basePath && (aPath == nil || [[aURL path] isEqualToString:aPath])) { + if (wantsBookmark) { + [self updateBookmark]; + [self setRelativePath:[aURL path] fromPath:basePath]; + } else { FSRef baseRef; if (BDSKPathToFSRef(basePath, &baseRef)) { [self updateAliasWithBaseRef:&baseRef]; [self setRelativePath:[aURL path] fromPath:basePath]; } - } else if (basePath) { - [self updateBookmark]; - [self setRelativePath:[aURL path] fromPath:basePath]; } } [aURL release]; 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