Potential fix for crash. Closes #4607.

This commit is contained in:
sledgehammer999 2016-03-18 01:52:43 +02:00
parent 2bb76bf781
commit 3067f82aea

View File

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