Revision: 7169
http://skim-app.svn.sourceforge.net/skim-app/?rev=7169&view=rev
Author: hofman
Date: 2011-03-17 12:09:34 +0000 (Thu, 17 Mar 2011)
Log Message:
-----------
use first user downloads folder
Modified Paths:
--------------
trunk/SKDownload.m
Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m 2011-03-17 12:04:33 UTC (rev 7168)
+++ trunk/SKDownload.m 2011-03-17 12:09:34 UTC (rev 7169)
@@ -322,8 +322,8 @@
- (void)download:(NSURLDownload *)download
decideDestinationWithSuggestedFilename:(NSString *)filename {
NSArray *downloadDirs =
NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory, NSUserDomainMask,
YES);
- if ([downloadDirs count])
- [URLDownload setDestination:[[downloadDirs lastObject]
stringByAppendingPathComponent:filename] allowOverwrite:NO];
+ if ([downloadDirs count] > 0)
+ [URLDownload setDestination:[[downloadDirs objectAtIndex:0]
stringByAppendingPathComponent:filename] allowOverwrite:NO];
}
- (void)download:(NSURLDownload *)download didCreateDestination:(NSString
*)path {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit