shell: default to kdevelop icon for plugins in LoadedPluginsDialog list

parent 12016eae
......@@ -100,8 +100,13 @@ public:
return displayName(plugin);
case DescriptionRole:
return pluginInfo(plugin).description();
case Qt::DecorationRole:
return pluginInfo(plugin).iconName();
case Qt::DecorationRole: {
const QString iconName = pluginInfo(plugin).iconName();
if (iconName.isEmpty()) {
return QStringLiteral("kdevelop");
}
return iconName;
}
default:
return QVariant();
};
......
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