Revision: 29580
http://sourceforge.net/p/bibdesk/svn/29580
Author: hofman
Date: 2025-09-15 15:31:41 +0000 (Mon, 15 Sep 2025)
Log Message:
-----------
combine conditions
Modified Paths:
--------------
trunk/bibdesk/BDSKWebView.m
trunk/bibdesk/en.lproj/WebGroupStartPage.html
Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2025-09-14 16:03:59 UTC (rev 29579)
+++ trunk/bibdesk/BDSKWebView.m 2025-09-15 15:31:41 UTC (rev 29580)
@@ -532,9 +532,7 @@
}
- (void)webView:(WebView *)sender decidePolicyForMIMEType:(NSString *)type
request:(NSURLRequest *)request frame:(WebFrame *)frame
decisionListener:(id<WebPolicyDecisionListener>)listener {
- if ([[request valueForHTTPHeaderField:@"Content-Disposition"]
hasPrefix:@"attachment"])
- [listener download];
- else if ([WebView canShowMIMEType:type])
+ if ([WebView canShowMIMEType:type] && [[request
valueForHTTPHeaderField:@"Content-Disposition"] hasPrefix:@"attachment"] == NO)
[listener use];
else
[listener download];
Modified: trunk/bibdesk/en.lproj/WebGroupStartPage.html
===================================================================
--- trunk/bibdesk/en.lproj/WebGroupStartPage.html 2025-09-14 16:03:59 UTC
(rev 29579)
+++ trunk/bibdesk/en.lproj/WebGroupStartPage.html 2025-09-15 15:31:41 UTC
(rev 29580)
@@ -43,7 +43,7 @@
<h2 title="These sites are fully accessible for
anyone.">Free Sites</h2>
<ul>
<$publicParsers>
- <li><a href="<$address/>"
title="<$info/>"><$name/></a></li>
+ <li><a href="<$address/>" title="<$info/>"
download><$name/></a></li>
</$publicParsers>
</ul>
</div>
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