]> granicus.if.org Git - transmission/commitdiff
remember selected transfers when updating the queue order over rpd
authorMitchell Livingston <livings124@transmissionbt.com>
Sun, 28 Aug 2011 00:26:39 +0000 (00:26 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Sun, 28 Aug 2011 00:26:39 +0000 (00:26 +0000)
macosx/Controller.m
macosx/Torrent.m

index 08192f4fef52a62d76d56fad78ff90e20fef6e5f..2411fea11fe79fed9e5605b9922e51e00a39cb07 100644 (file)
@@ -4233,6 +4233,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     for (Torrent * torrent in fTorrents)
         [torrent update];
     
+    NSArray * selectedValues = [fTableView selectedValues];
+    
     NSSortDescriptor * descriptor = [[NSSortDescriptor alloc] initWithKey: @"queuePosition" ascending: YES];
     NSArray * descriptors = [NSArray arrayWithObject: descriptor];
     [descriptor release];
@@ -4240,6 +4242,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     [fTorrents sortUsingDescriptors: descriptors];
     
     [self fullUpdateUI];
+    
+    [fTableView selectValues: selectedValues];
 }
 
 @end
index f297efed77bc69786ea3b1c8516c1de977439f67..2128e508d456f7de3ca63d56105e3c87c73b8bde 100644 (file)
@@ -282,7 +282,7 @@ int trashDataFile(const char * filename)
         return nil;
 }
 
--(void) setPreviousFinishedPieces: (NSIndexSet *) indexes
+- (void) setPreviousFinishedPieces: (NSIndexSet *) indexes
 {
     [fPreviousFinishedIndexes release];
     fPreviousFinishedIndexes = [indexes retain];