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:
parent
a224650281
commit
74d757f0f1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user