Merge pull request #233 from louib/fix/downloadIconCrash

Fixes #225 : downloading favicon crash
This commit is contained in:
Janek Bevendorff 2017-01-27 21:57:35 +02:00 committed by GitHub
commit 7e4592c1e7

View File

@ -190,6 +190,10 @@ void EditWidgetIcons::abortFaviconDownload(bool clearRedirect)
void EditWidgetIcons::onRequestFinished(QNetworkReply *reply)
{
if (m_database == nullptr) {
return;
}
if (!reply->error()) {
QImage image;
image.loadFromData(reply->readAll());