Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit bca00512 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Ensure QML icon provider always returns a valid image to reduce warnings.

The warnings on start-up were a little obnoxious.
parent e7ef484b
......@@ -30,6 +30,10 @@ IconImageProvider::IconImageProvider()
QImage IconImageProvider::requestImage(const QString &id, QSize */*size*/, const QSize &requestedSize)
QIcon icon = KisIconUtils::loadIcon(id);
if (icon.isNull()) {
QImage img = QImage(requestedSize, QImage::Format_ARGB32);
return img;
return icon.pixmap(requestedSize).toImage();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment