mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-29 05:48:47 +03:00
Merge pull request #5005 from ngosang/crash_fix
Potential fix for crash. Closes #4990, #4905, #4864, #4855, #4818, #4726, #4648
This commit is contained in:
commit
696ea0bf94
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,6 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash)
|
|||
|
||||
if (host != "") {
|
||||
trackerItem = item(rowFromTracker(host));
|
||||
if (!trackerItem) return;
|
||||
}
|
||||
else {
|
||||
trackerItem = item(1);
|
||||
|
@ -494,6 +493,7 @@ void TrackerFiltersList::addItem(const QString &tracker, const QString &hash)
|
|||
|
||||
downloadFavicon(QString("http://%1/favicon.ico").arg(host));
|
||||
}
|
||||
if (!trackerItem) return;
|
||||
|
||||
tmp.append(hash);
|
||||
m_trackers.insert(host, tmp);
|
||||
|
|
Loading…
Reference in a new issue