]> granicus.if.org Git - transmission/commitdiff
when adding a transfer from the Add window, put the torrent at the bottom of the...
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 21 Aug 2011 16:28:16 +0000 (16:28 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 21 Aug 2011 16:28:16 +0000 (16:28 +0000)
macosx/Controller.m

index f4fb19aec169b1b206dd88a57aad4ad80465ea88..966149e72b2e6626ca03bb5a8466dbf6454d7df4 100644 (file)
@@ -504,7 +504,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     [nc addObserver: fWindow selector: @selector(makeKeyWindow)
                     name: @"MakeWindowKey" object: nil];
     
-#warning look at this
     [nc addObserver: self selector: @selector(fullUpdateUI)
                     name: @"UpdateQueue" object: nil];
     
@@ -915,12 +914,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     
     if (add)
     {
+        [torrent setQueuePosition: [fTorrents count]];
+        
         [torrent update];
         [fTorrents addObject: torrent];
         [torrent release];
         
-        #warning set to bottom of queue
-        
         [self fullUpdateUI];
     }
     else
@@ -986,12 +985,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     
     if (add)
     {
+        [torrent setQueuePosition: [fTorrents count]];
+        
         [torrent update];
         [fTorrents addObject: torrent];
         [torrent release];
         
-        #warning set to bottom of queue
-        
         [self fullUpdateUI];
     }
     else