1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-27 23:14:31 +00:00

Delete tempfile when downloading favicon.ico. Closes #3257.

This commit is contained in:
sledgehammer999 2015-06-20 18:21:20 +03:00
parent a224650281
commit 74d757f0f1

View File

@ -616,7 +616,10 @@ void TrackerFiltersList::trackerWarning(const QString &hash, const QString &trac
void TrackerFiltersList::handleFavicoDownload(const QString& url, const QString& filePath)
{
QString host = getHost(url);
if (!m_trackers.contains(host)) return;
if (!m_trackers.contains(host)) {
Utils::Fs::forceRemove(filePath);
return;
}
QListWidgetItem *trackerItem = item(rowFromTracker(host));
QIcon icon(filePath);