Fix KisIconUtils's loadIcon() (adapt code to one of ported themedIcon())

parent 9a8c591c
......@@ -55,14 +55,14 @@ KIcon loadIcon(const QString &name) {
realName = name;
}
QIcon icon(realName);
KIcon icon(realName);
// fallback
if (icon.isNull()) {
icon = QIcon(name);
return KIcon(name);
}
return KIcon(icon);
return icon;
}
bool adjustIcon(QIcon *icon)
......
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