mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Delete tempfile when downloading favicon.ico. Closes #3257.
This commit is contained in:
@@ -611,8 +611,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))
|
||||
if (!m_trackers.contains(host)) {
|
||||
fsutils::forceRemove(filePath);
|
||||
return;
|
||||
}
|
||||
|
||||
QListWidgetItem *trackerItem = item(rowFromTracker(host));
|
||||
QIcon icon(filePath);
|
||||
|
||||
Reference in New Issue
Block a user