Skip to content

Commit

Permalink
Remove stopped torrent from "error" tracker filter
Browse files Browse the repository at this point in the history
PR #22219.
  • Loading branch information
glassez authored Jan 31, 2025
1 parent b76054b commit a018cfa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/gui/transferlistfilters/trackersfilterwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,16 @@ void TrackersFilterWidget::handleTrackerStatusesUpdated(const BitTorrent::Torren
trackerErrorHashesIt = m_trackerErrors.insert(id, {});
trackerErrorHashesIt->insert(trackerEntryStatus.url);
}
else if (trackerEntryStatus.state == BitTorrent::TrackerEndpointState::NotContacted)
{
// remove tracker from "error", "tracker error" and "warning" categories
if (warningHashesIt != m_warnings.end())
warningHashesIt->remove(trackerEntryStatus.url);
if (errorHashesIt != m_errors.end())
errorHashesIt->remove(trackerEntryStatus.url);
if (trackerErrorHashesIt != m_trackerErrors.end())
trackerErrorHashesIt->remove(trackerEntryStatus.url);
}
}

if ((errorHashesIt != m_errors.end()) && errorHashesIt->isEmpty())
Expand Down

0 comments on commit a018cfa

Please sign in to comment.