update the active filer when a torrent changes from stalled to unstalled

This commit is contained in:
Mitchell Livingston 2008-01-09 15:58:37 +00:00
parent b2dafeed8e
commit d2ff4d99f3
2 changed files with 2 additions and 1 deletions

View File

@ -160,6 +160,7 @@
if ([fDeleteCheck state] == NSOnState)
[fTorrent trashTorrent];
//ensure last, since it releases this controller
[fController askOpenConfirmed: self add: YES];
}

View File

@ -273,7 +273,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
&& [fDefaults integerForKey: @"StalledMinutes"] < [self stalledMinutes];
//update queue for checking (from downloading to seeding), stalled, or error
if ((wasChecking && !fChecking) || (!wasStalled && fStalled) || (!wasError && fError && [self isActive]))
if ((wasChecking && !fChecking) || (wasStalled != fStalled) || (!wasError && fError && [self isActive]))
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
}