Ignore invalid X-Plasma-ConfigPlugins
CHANGELOG: Fix occasional empty applet config pages CCBUG: 349250 REVIEW: 124113
This commit is contained in:
parent
5165d6574e
commit
ac04b5570a
@ -145,6 +145,11 @@ void ConfigViewPrivate::init()
|
||||
KPluginLoader loader(KPluginLoader::findPlugin(QLatin1String("kcms/") + kcm));
|
||||
KPluginMetaData md(loader.fileName());
|
||||
|
||||
if (!md.isValid()) {
|
||||
qWarning() << "Could not find" << kcm << "specified in X-Plasma-ConfigPlugins";
|
||||
continue;
|
||||
}
|
||||
|
||||
configModel->appendCategory(md.iconName(), md.name(), QString(), loader.fileName());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user