From b0204b34bd895c0277215f49b686f848aa0d0b03 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 23 Jun 2006 15:44:18 +0000 Subject: [PATCH] For now the next to auto-start will be the earliest added transfer that is waiting --- macosx/Controller.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index f68ff2d48..b6d0f0f9a 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -970,7 +970,9 @@ static void sleepCallBack(void * controller, io_service_t y, } else { - if (!torrentToStart && [torrent waitingToStart]) + //use as next if it is waiting to start and either no previous is or the previous has later date + if ([torrent waitingToStart] && (!torrentToStart + || [[torrentToStart date] compare: [torrent date]] == NSOrderedDescending)) torrentToStart = torrent; } }