qmlFrontend/themeiconprovider.cpp
branchqmlfrontend
changeset 11437 97e3e62ea5f9
parent 10440 b74a7bbe224e
--- a/qmlFrontend/themeiconprovider.cpp	Wed Nov 25 22:10:01 2015 +0300
+++ b/qmlFrontend/themeiconprovider.cpp	Thu Nov 26 20:11:54 2015 +0300
@@ -28,9 +28,9 @@
     char * bufptr = buf.data();
     uint32_t fileSize = getThemeIcon(id.toUtf8().data(), bufptr, buf.size());
     buf.truncate(fileSize);
-    qDebug() << "ThemeIconProvider file size = " << fileSize;
+    //qDebug() << "ThemeIconProvider file size = " << fileSize;
 
-    QImage img = QImage::fromData(buf);
+    QImage img = fileSize ? QImage::fromData(buf) : QImage(16, 16, QImage::Format_ARGB32);
 
     if (size)
         *size = img.size();