Browse Source

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

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
74d757f0f1
  1. 5
      src/gui/transferlistfilterswidget.cpp

5
src/gui/transferlistfilterswidget.cpp

@ -616,7 +616,10 @@ void TrackerFiltersList::trackerWarning(const QString &hash, const QString &trac @@ -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…
Cancel
Save