Merge pull request #4354 from varjolintu/hotfix/download_icon_button

Icon downloader button crash fix
This commit is contained in:
Sami Vänttinen 2020-02-21 08:59:42 +02:00 committed by GitHub
commit e85854aa24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,6 +126,10 @@ void IconDownloader::setUrl(const QString& entryUrl)
void IconDownloader::download()
{
if (m_urlsToTry.isEmpty()) {
return;
}
if (!m_timeout.isActive()) {
int timeout = config()->get("FaviconDownloadTimeout", 10).toInt();
m_timeout.start(timeout * 1000);