From: <ho...@us...> - 2011-08-27 23:26:38
|
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. |