mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Potential fix for crash. Closes #4607.
This commit is contained in:
parent
2bb76bf781
commit
3067f82aea
1 changed files with 5 additions and 2 deletions
|
@ -480,10 +480,13 @@ 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue