Fix potential crash. Closes #5873.

This commit is contained in:
Chocobo1 2016-10-30 16:09:50 +08:00
parent f8dc8ad4ad
commit aba625d544

View file

@ -544,7 +544,8 @@ void TrackerFiltersList::removeItem(const QString &tracker, const QString &hash)
updateGeometry();
return;
}
trackerItem->setText(tr("%1 (%2)", "openbittorrent.com (10)").arg(host).arg(tmp.size()));
if (trackerItem != nullptr)
trackerItem->setText(tr("%1 (%2)", "openbittorrent.com (10)").arg(host).arg(tmp.size()));
}
else {
row = 1;