mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 00:05:34 -04:00
Fixes #225 : downloading favicon crash
This commit is contained in:
parent
61379d4e05
commit
3c9054c36f
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