Revision: 29271 http://sourceforge.net/p/bibdesk/svn/29271 Author: hofman Date: 2025-06-25 14:48:22 +0000 (Wed, 25 Jun 2025) Log Message: ----------- don't reopen last open file wwhenit is in the trash
Modified Paths: -------------- trunk/bibdesk/BDSKAppController.m Modified: trunk/bibdesk/BDSKAppController.m =================================================================== --- trunk/bibdesk/BDSKAppController.m 2025-06-25 14:43:51 UTC (rev 29270) +++ trunk/bibdesk/BDSKAppController.m 2025-06-25 14:48:22 UTC (rev 29271) @@ -311,7 +311,7 @@ NSURL *fileURL; for (NSDictionary *dict in [files reverseObjectEnumerator]){ fileURL = [NSURL fileURLWithAliasData:[dict objectForKey:@"_BDAlias"] bookmarkData:[dict objectForKey:@"bookmark"]] ?: [NSURL fileURLWithPath:[dict objectForKey:@"fileName"] isDirectory:NO]; - if(fileURL) + if (fileURL && NO == fileIsInTrash(fileURL)) [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:fileURL display:YES completionHandler:^(NSDocument *document, BOOL documentWasAlreadyOpen, NSError *error){}]; } } 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