libs: warn when the image reader claims the data is readable but returns null image from favicon KDED module

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-23 04:35:12 +03:00
parent 055a8ca5f1
commit e806e8a4c7

View file

@ -281,6 +281,9 @@ void FavIconsModule::slotResult(KJob *job)
} else if (!download.isHost) {
d->config->group(QString()).writeEntry(removeSlash(download.hostOrURL), iconURL.url());
}
} else {
errorMessage = i18n("Image reader returned null image");
kWarning() << "Image reader returned null image" << ir.errorString();
}
} else {
errorMessage = i18n("Image reader cannot read the data");