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:
Mitchell Livingston
2008-07-07 02:09:27 +00:00
parent deca1f60ff
commit f48d78bf6f
2 changed files with 5 additions and 3 deletions

View File

@@ -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];

View File

@@ -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];
}