mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Potential fix for crash. Closes #4607.
This commit is contained in:
parent
d7f02a7ee7
commit
5e5785435a
1 changed files with 5 additions and 2 deletions
|
@ -460,11 +460,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"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue