]> granicus.if.org Git - transmission/commitdiff
#4448 "Resume all" toolbar button should factor in seeding-complete transfers
authorMitchell Livingston <livings124@transmissionbt.com>
Sat, 27 Aug 2011 21:31:44 +0000 (21:31 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sat, 27 Aug 2011 21:31:44 +0000 (21:31 +0000)
macosx/Controller.m

index ab675de165f970d3c8bcd1ad41fa97ba4ae56e51..e054e6e4a5ada74b5b50c5a4503cb44f97bd78b1 100644 (file)
@@ -3429,7 +3429,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     if ([ident isEqualToString: TOOLBAR_RESUME_ALL])
     {
         for (Torrent * torrent in fTorrents)
-            if (![torrent isActive] && ![torrent waitingToStart])
+            if (![torrent isActive] && ![torrent waitingToStart] && ![torrent isFinishedSeeding])
                 return YES;
         return NO;
     }
@@ -3729,7 +3729,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
             return NO;
     
         for (Torrent * torrent in fTorrents)
-            if (![torrent isActive] && [torrent waitingToStart])
+            if ([torrent waitingToStart])
                 return YES;
         return NO;
     }