containments children of corona
so Containment::corona() works again
This commit is contained in:
parent
643df96f63
commit
5cb3712bc6
@ -592,6 +592,9 @@ Containment *CoronaPrivate::addContainment(const QString &name, const QVariantLi
|
||||
if (!loadingNull) {
|
||||
applet = PluginLoader::self()->loadApplet(pluginName, id, args);
|
||||
containment = dynamic_cast<Containment*>(applet);
|
||||
if (containment) {
|
||||
containment->setParent(q);
|
||||
}
|
||||
}
|
||||
|
||||
if (!containment) {
|
||||
@ -609,7 +612,7 @@ Containment *CoronaPrivate::addContainment(const QString &name, const QVariantLi
|
||||
applet->init();
|
||||
delete applet;
|
||||
}
|
||||
applet = containment = new Containment(0, 0, id);
|
||||
applet = containment = new Containment(q, 0, id);
|
||||
|
||||
if (loadingNull) {
|
||||
containment->setDrawWallpaper(false);
|
||||
|
Loading…
Reference in New Issue
Block a user