Revision: 7453
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7453&view=rev
Author:   hofman
Date:     2011-08-29 11:41:05 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
downloads directory should already be set in defaults domain

Modified Paths:
--------------
    trunk/SKDownload.m

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2011-08-29 10:12:02 UTC (rev 7452)
+++ trunk/SKDownload.m  2011-08-29 11:41:05 UTC (rev 7453)
@@ -356,11 +356,6 @@
 
 - (void)download:(NSURLDownload *)download 
decideDestinationWithSuggestedFilename:(NSString *)filename {
     NSString *downloadDir = [[[NSUserDefaults standardUserDefaults] 
stringForKey:SKDownloadsDirectoryKey] stringByExpandingTildeInPath];
-    if (downloadDir == nil) {
-        NSArray *downloadDirs = 
NSSearchPathForDirectoriesInDomains(NSDownloadsDirectory, NSUserDomainMask, 
YES);
-        if ([downloadDirs count] > 0)
-            downloadDir = [downloadDirs objectAtIndex:0];
-    }
     if (downloadDir)
         [URLDownload setDestination:[downloadDir 
stringByAppendingPathComponent:filename] allowOverwrite:NO];
 }

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
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to