Revision: 28126
http://sourceforge.net/p/bibdesk/svn/28126
Author: hofman
Date: 2022-12-16 17:38:23 +0000 (Fri, 16 Dec 2022)
Log Message:
-----------
no early return
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2022-12-16 17:14:47 UTC (rev 28125)
+++ trunk/bibdesk/BibItem.m 2022-12-16 17:38:23 UTC (rev 28126)
@@ -3305,6 +3305,7 @@
- (void)itemDownloadDidStart:(BDSKItemDownload *)download {
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:download
forKey:BDSKItemDownloadKey];
+ NSString *name = BDSKItemDownloadUpdatedNotification;
if (([download options] & BDSKDownloadCheckType)) {
NSSet *types = [NSSet setWithArray:[[NSUserDefaults
standardUserDefaults] stringArrayForKey:BDSKURLTypesToDownloadKey]];
NSString *MIMEType = [[download response] MIMEType];
@@ -3315,14 +3316,13 @@
CFRelease(theUTI);
if ([extensions count] && [types intersectsSet:extensions] ==
NO) {
[download cancel];
- [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKItemDownloadFinishedNotification object:self
userInfo:userInfo];
[downloads removeObject:download];
- return;
+ name = BDSKItemDownloadFinishedNotification;
}
}
}
}
- [[NSNotificationCenter defaultCenter]
postNotificationName:BDSKItemDownloadUpdatedNotification object:self
userInfo:userInfo];
+ [[NSNotificationCenter defaultCenter] postNotificationName:name
object:self userInfo:userInfo];
}
- (void)itemDownloadDidUpdate:(BDSKItemDownload *)download {
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