fix for when filtering and a transfer goes from checking (download) to seeding without refreshing the filter
This commit is contained in:
parent
d97ac66e43
commit
8ee2e36f0a
|
@ -50,9 +50,8 @@
|
||||||
|
|
||||||
int fUploadLimit, fDownloadLimit;
|
int fUploadLimit, fDownloadLimit;
|
||||||
float fRatioLimit;
|
float fRatioLimit;
|
||||||
BOOL fLimitCustom, fCheckUpload, fCheckDownload,
|
BOOL fLimitCustom, fCheckUpload, fCheckDownload, fRatioCustom, fShouldStopAtRatio,
|
||||||
fRatioCustom, fShouldStopAtRatio,
|
fFinishedSeeding, fWaitToStart, fError, fChecking;
|
||||||
fFinishedSeeding, fWaitToStart, fError;
|
|
||||||
|
|
||||||
int fOrderValue;
|
int fOrderValue;
|
||||||
|
|
||||||
|
|
|
@ -290,10 +290,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
[NSString stringForFileSize: [self size]], [NSString stringForFileSize: [self uploadedTotal]],
|
[NSString stringForFileSize: [self size]], [NSString stringForFileSize: [self uploadedTotal]],
|
||||||
[NSString stringForRatio: [self ratio]]];
|
[NSString stringForRatio: [self ratio]]];
|
||||||
|
|
||||||
|
BOOL wasChecking = fChecking;
|
||||||
|
fChecking = NO;
|
||||||
switch (fStat->status)
|
switch (fStat->status)
|
||||||
{
|
{
|
||||||
NSString * tempString;
|
NSString * tempString;
|
||||||
|
|
||||||
case TR_STATUS_PAUSE:
|
case TR_STATUS_PAUSE:
|
||||||
if (fWaitToStart)
|
if (fWaitToStart)
|
||||||
{
|
{
|
||||||
|
@ -318,6 +320,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
[fShortStatusString setString: tempString];
|
[fShortStatusString setString: tempString];
|
||||||
[fRemainingTimeString setString: tempString];
|
[fRemainingTimeString setString: tempString];
|
||||||
|
|
||||||
|
fChecking = YES;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TR_STATUS_DOWNLOAD:
|
case TR_STATUS_DOWNLOAD:
|
||||||
|
@ -368,8 +372,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
[fStatusString appendFormat: NSLocalizedString(@"Seeding to %d of %d peers", "Torrent -> status string"),
|
[fStatusString appendFormat: NSLocalizedString(@"Seeding to %d of %d peers", "Torrent -> status string"),
|
||||||
[self peersDownloading], [self totalPeers]];
|
[self peersDownloading], [self totalPeers]];
|
||||||
else
|
else
|
||||||
[fStatusString appendFormat: NSLocalizedString(@"Seeding to %d of %d peer", "Torrent -> status string"),
|
[fStatusString appendFormat: NSLocalizedString(@"Seeding to %d of 1 peer", "Torrent -> status string"),
|
||||||
[self peersDownloading], [self totalPeers]];
|
[self peersDownloading]];
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -382,6 +386,9 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (wasChecking && !fChecking)
|
||||||
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
|
||||||
|
|
||||||
if (fStat->error)
|
if (fStat->error)
|
||||||
{
|
{
|
||||||
[fStatusString setString: [NSLocalizedString(@"Error: ", "Torrent -> status string") stringByAppendingString:
|
[fStatusString setString: [NSLocalizedString(@"Error: ", "Torrent -> status string") stringByAppendingString:
|
||||||
|
|
Loading…
Reference in New Issue