mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
fix recently introduced bug that caused resuming/pausing torrents through the menu item when groups are shown to deselect the row
This commit is contained in:
@@ -2065,8 +2065,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
|
||||
//actually sort
|
||||
[self sortTorrentsIgnoreSelected];
|
||||
[fTableView selectValues: selectedValues];
|
||||
//[self resetInfo]; //if group is already selected, but the torrents in it change
|
||||
|
||||
//reset expanded/collapsed rows
|
||||
if (groupRows)
|
||||
@@ -2082,6 +2080,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
}
|
||||
}
|
||||
|
||||
[fTableView selectValues: selectedValues];
|
||||
//removed because it made the inspector reset
|
||||
//[self resetInfo]; //if group is already selected, but the torrents in it change
|
||||
|
||||
[self setBottomCountText: groupRows || filterStatus || filterGroup || filterText];
|
||||
|
||||
[self setWindowSizeToFit];
|
||||
|
||||
@@ -443,7 +443,7 @@
|
||||
{
|
||||
if ([item isKindOfClass: [Torrent class]])
|
||||
{
|
||||
NSUInteger index = [self rowForItem: item];
|
||||
NSInteger index = [self rowForItem: item];
|
||||
if (index != -1)
|
||||
[indexSet addIndex: index];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user