|
|
@ -480,11 +480,14 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash) |
|
|
|
if (tmp.contains(hash)) |
|
|
|
if (tmp.contains(hash)) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (host != "") |
|
|
|
if (host != "") { |
|
|
|
trackerItem = item(rowFromTracker(host)); |
|
|
|
trackerItem = item(rowFromTracker(host)); |
|
|
|
else |
|
|
|
if (!trackerItem) return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
trackerItem = item(1); |
|
|
|
trackerItem = item(1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
trackerItem = new QListWidgetItem(); |
|
|
|
trackerItem = new QListWidgetItem(); |
|
|
|
trackerItem->setData(Qt::DecorationRole, GuiIconProvider::instance()->getIcon("network-server")); |
|
|
|
trackerItem->setData(Qt::DecorationRole, GuiIconProvider::instance()->getIcon("network-server")); |
|
|
|