Call setParent() after the m_wallpaper pointer check
BUG: 192912 svn path=/trunk/KDE/kdelibs/; revision=969230
This commit is contained in:
parent
f5c6a90996
commit
479203d54f
@ -1457,10 +1457,10 @@ void Containment::setWallpaper(const QString &pluginName, const QString &mode)
|
||||
|
||||
if (!pluginName.isEmpty() && !d->wallpaper) {
|
||||
d->wallpaper = Plasma::Wallpaper::load(pluginName);
|
||||
d->wallpaper->setParent(this);
|
||||
}
|
||||
|
||||
if (d->wallpaper) {
|
||||
d->wallpaper->setParent(this);
|
||||
d->wallpaper->setBoundingRect(QRectF(QPointF(0, 0), size()));
|
||||
d->wallpaper->setRenderingMode(mode);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user