mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -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)
|
void TrackerFiltersList::handleFavicoDownload(const QString& url, const QString& filePath)
|
||||||
{
|
{
|
||||||
QString host = getHost(url);
|
QString host = getHost(url);
|
||||||
if (!m_trackers.contains(host))
|
if (!m_trackers.contains(host)) {
|
||||||
|
fsutils::forceRemove(filePath);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QListWidgetItem *trackerItem = item(rowFromTracker(host));
|
QListWidgetItem *trackerItem = item(rowFromTracker(host));
|
||||||
QIcon icon(filePath);
|
QIcon icon(filePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user