mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Delete tempfile when downloading favicon.ico. Closes #3257.
This commit is contained in:
parent
a224650281
commit
74d757f0f1
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue