mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-25 23:21:03 -04:00
Merge pull request #233 from louib/fix/downloadIconCrash
Fixes #225 : downloading favicon crash
This commit is contained in:
commit
7e4592c1e7
1 changed files with 4 additions and 0 deletions
|
@ -190,6 +190,10 @@ void EditWidgetIcons::abortFaviconDownload(bool clearRedirect)
|
||||||
|
|
||||||
void EditWidgetIcons::onRequestFinished(QNetworkReply *reply)
|
void EditWidgetIcons::onRequestFinished(QNetworkReply *reply)
|
||||||
{
|
{
|
||||||
|
if (m_database == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!reply->error()) {
|
if (!reply->error()) {
|
||||||
QImage image;
|
QImage image;
|
||||||
image.loadFromData(reply->readAll());
|
image.loadFromData(reply->readAll());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue