mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-16 17:04:20 -05:00
Merge pull request #4354 from varjolintu/hotfix/download_icon_button
Icon downloader button crash fix
This commit is contained in:
commit
e85854aa24
1 changed files with 4 additions and 0 deletions
|
|
@ -126,6 +126,10 @@ void IconDownloader::setUrl(const QString& entryUrl)
|
||||||
|
|
||||||
void IconDownloader::download()
|
void IconDownloader::download()
|
||||||
{
|
{
|
||||||
|
if (m_urlsToTry.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_timeout.isActive()) {
|
if (!m_timeout.isActive()) {
|
||||||
int timeout = config()->get("FaviconDownloadTimeout", 10).toInt();
|
int timeout = config()->get("FaviconDownloadTimeout", 10).toInt();
|
||||||
m_timeout.start(timeout * 1000);
|
m_timeout.start(timeout * 1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue