scripted containment loading fix
load as containment also applets that have both Plasma/Applet and Plasma/Containment
This commit is contained in:
parent
9b096741f8
commit
56a7b2e5df
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user