scripted containment loading fix

load as containment also applets that have both Plasma/Applet and Plasma/Containment
This commit is contained in:
Marco Martin 2011-02-20 16:51:16 +01:00
parent 9b096741f8
commit 56a7b2e5df

View File

@ -121,7 +121,9 @@ Applet *PluginLoader::loadApplet(const QString &name, uint appletId, const QVari
if (isContainment) { if (isContainment) {
return new Containment(0, allArgs); return new Containment(0, allArgs);
} else { } else {
if (offer->serviceTypes().contains("Plasma/PopupApplet")) { if (offer->serviceTypes().contains("Plasma/Containment")) {
return new Containment(0, allArgs);
} else if (offer->serviceTypes().contains("Plasma/PopupApplet")) {
return new PopupApplet(0, allArgs); return new PopupApplet(0, allArgs);
} else { } else {
return new Applet(0, allArgs); return new Applet(0, allArgs);