mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Potential fix for crash. Closes #4607.
This commit is contained in:
@@ -460,10 +460,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();
|
||||
|
||||
Reference in New Issue
Block a user