We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b433f commit 7eddbd2Copy full SHA for 7eddbd2
src/resources/resources.cpp
@@ -108,7 +108,8 @@ QIcon OCC::Resources::getCoreIcon(const QString &iconName)
108
QByteArray data = Template::renderTemplateFromFile(iconPath, {{QStringLiteral("color"), color}}).toUtf8();
109
QBuffer buffer(&data);
110
QImageReader iconReader(&buffer, "svg");
111
- return cached = QPixmap::fromImageReader(&iconReader);
+ cached = QPixmap::fromImageReader(&iconReader);
112
+ OC_ASSERT(!cached.isNull());
113
}
114
return cached;
115
0 commit comments