From b83cf33f282d43c948b881897827c2f8477fabc7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 4 Jan 2008 04:54:26 +0000 Subject: [PATCH] acknowledge the start check --- macosx/AddWindowController.m | 2 ++ macosx/Controller.m | 2 ++ macosx/Torrent.m | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/macosx/AddWindowController.m b/macosx/AddWindowController.m index b71d1044f..4df2f9d6a 100644 --- a/macosx/AddWindowController.m +++ b/macosx/AddWindowController.m @@ -117,6 +117,8 @@ - (void) add: (id) sender { + [fTorrent setWaitToStart: [fStartCheck state] == NSOnState]; + [fController askOpenConfirmed: fTorrent]; #warning remove if necessary diff --git a/macosx/Controller.m b/macosx/Controller.m index 3e80af60d..6929f9b7f 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -778,6 +778,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi [[[AddWindowController alloc] initWithTorrent: torrent destination: location controller: self] showWindow: self]; else { + [torrent setWaitToStart: [fDefaults boolForKey: @"AutoStartDownload"]]; + [torrent update]; [fTorrents addObject: torrent]; [torrent release]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 8adb8ea0d..c0d8a1090 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -1548,7 +1548,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void * fRatioLimit = ratioLimit ? [ratioLimit floatValue] : [fDefaults floatForKey: @"RatioLimit"]; fFinishedSeeding = NO; - fWaitToStart = waitToStart ? [waitToStart boolValue] : [fDefaults boolForKey: @"AutoStartDownload"]; + fWaitToStart = waitToStart && [waitToStart boolValue]; fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1; fGroupValue = groupValue ? [groupValue intValue] : -1;