Fixed types for plugin recognition in shell

This commit is contained in:
Sebastian Kügler 2014-01-16 20:14:19 +01:00
parent 1a68e9aabf
commit f517765bd0

View File

@ -37,10 +37,10 @@ Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFor
{ {
Q_UNUSED(specialization) Q_UNUSED(specialization)
if (packageFormat.endsWith("/LookAndFeel")) { if (packageFormat == "Plasma/LookAndFeel") {
Plasma::PackageStructure *structure = new LookAndFeelPackage(); Plasma::PackageStructure *structure = new LookAndFeelPackage();
return Plasma::Package(structure); return Plasma::Package(structure);
} else if (packageFormat.endsWith("/Wallpaper")) { } else if (packageFormat == "Plasma/Wallpaper") {
Plasma::PackageStructure *structure = new QmlWallpaperPackage(); Plasma::PackageStructure *structure = new QmlWallpaperPackage();
return Plasma::Package(structure); return Plasma::Package(structure);
} else { } else {