Browse Source

Optimize tracker insertion in TrackerFiltersList

adaptive-webui-19844
Prince Gupta 3 years ago
parent
commit
25be00931a
  1. 2
      src/gui/transferlistfilterswidget.cpp

2
src/gui/transferlistfilterswidget.cpp

@ -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;
} }

Loading…
Cancel
Save