remember selected transfers when updating the queue order over rpd

This commit is contained in:
Mitchell Livingston
2011-08-28 00:26:39 +00:00
parent 3aba37aa13
commit 836ee3595f
2 changed files with 5 additions and 1 deletions

View 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