#4587 update the main window when a transfer changes stalled-ness

This commit is contained in:
Mitchell Livingston 2011-10-30 03:13:20 +00:00
parent f27a4e5e6f
commit 8b106f68f2
1 changed files with 7 additions and 0 deletions

View File

@ -293,7 +293,14 @@ int trashDataFile(const char * filename)
- (void) update
{
//get previous stalled value before update
const BOOL wasStalled = fStat != NULL && [self isStalled];
fStat = tr_torrentStat(fHandle);
//make sure the "active" filter is updated when stalled-ness changes
if (wasStalled != [self isStalled])
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
//when the data first appears, update time machine exclusion
if (!fTimeMachineExclude)