Revision: 18093
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18093&view=rev
Author:   hofman
Date:     2011-08-27 23:26:32 +0000 (Sat, 27 Aug 2011)
Log Message:
-----------
expand tilde in downloads dir

Modified Paths:
--------------
    trunk/bibdesk/BDSKWebView.m

Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2011-08-27 17:15:53 UTC (rev 18092)
+++ trunk/bibdesk/BDSKWebView.m 2011-08-27 23:26:32 UTC (rev 18093)
@@ -446,7 +446,7 @@
 // This is a private WebUIDelegate method that is called by WebPDFView
 - (void)webView:(WebView *)sender saveFrameView:(WebFrameView *)frameView 
showingPanel:(BOOL)showingPanel {
     WebDataSource *dataSource = [[frameView webFrame] dataSource];
-    NSString *downloadsDir = [[NSUserDefaults standardUserDefaults] 
stringForKey:BDSKDownloadsDirectoryKey] ?: [[[NSFileManager defaultManager] 
downloadFolderURL] path];
+    NSString *downloadsDir = [[[NSUserDefaults standardUserDefaults] 
stringForKey:BDSKDownloadsDirectoryKey] stringByExpandingTildeInPath] ?: 
[[[NSFileManager defaultManager] downloadFolderURL] path];
     NSString *filename = [[dataSource response] suggestedFilename];
     filename = [[NSFileManager defaultManager] uniqueFilePathWithName:filename 
atPath:downloadsDir];
     if (showingPanel) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to