Revision: 3559
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3559&view=rev
Author:   hofman
Date:     2008-03-26 08:24:28 -0700 (Wed, 26 Mar 2008)

Log Message:
-----------
Only start download after it has been added to the array of downloads.

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

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2008-03-26 15:09:26 UTC (rev 3558)
+++ trunk/SKDownload.m  2008-03-26 15:24:28 UTC (rev 3559)
@@ -63,9 +63,6 @@
         status = SKDownloadStatusUndefined;
         delegate = aDelegate;
         
-        if (URL)
-            [self startDownload];
-        
         [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleApplicationWillTerminateNotification:) 
                                                      
name:NSApplicationWillTerminateNotification object:NSApp];
     }

Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m        2008-03-26 15:09:26 UTC (rev 3558)
+++ trunk/SKDownloadController.m        2008-03-26 15:24:28 UTC (rev 3559)
@@ -106,6 +106,7 @@
         SKDownload *download = [[[SKDownload alloc] initWithURL:aURL 
delegate:self] autorelease];
         int row = [downloads count];
         [downloads addObject:download];
+        [download startDownload];
         [self reloadTableView];
         [tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] 
byExtendingSelection:NO];
         [tableView scrollRowToVisible:row];


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to