mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Optimize tracker insertion in TrackerFiltersList
This commit is contained in:
@@ -378,7 +378,7 @@ void TrackerFiltersList::addItem(const QString &tracker, const BitTorrent::Torre
|
|||||||
trackerItem->setText(QString::fromLatin1("%1 (%2)").arg(host, QString::number(torrentIDs.size())));
|
trackerItem->setText(QString::fromLatin1("%1 (%2)").arg(host, QString::number(torrentIDs.size())));
|
||||||
if (exists)
|
if (exists)
|
||||||
{
|
{
|
||||||
if (currentRow() == rowFromTracker(host))
|
if (trackerFromRow(currentRow()) == host)
|
||||||
applyFilter(currentRow());
|
applyFilter(currentRow());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user