mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Try to download favicon.png when the download of favicon.ico fails
Manual backport of 3889b4c101
This commit is contained in:
parent
2e08b365a2
commit
a78cd3d2ac
1 changed files with 2 additions and 0 deletions
|
@ -644,6 +644,8 @@ void TrackerFiltersList::handleFavicoFailure(const QString& url, const QString&
|
|||
// that.
|
||||
Logger::instance()->addMessage(tr("Couldn't download favicon for URL `%1`. Reason: `%2`").arg(url).arg(error),
|
||||
Log::WARNING);
|
||||
if (url.endsWith(".ico", Qt::CaseInsensitive))
|
||||
m_downloader->downloadUrl(url.left(url.size() - 4) + ".png");
|
||||
}
|
||||
|
||||
void TrackerFiltersList::showMenu(QPoint)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue