Call setParent() after the m_wallpaper pointer check

BUG: 192912

svn path=/trunk/KDE/kdelibs/; revision=969230
This commit is contained in:
Darío Andrés Rodríguez 2009-05-17 18:23:31 +00:00
parent f5c6a90996
commit 479203d54f

View File

@ -1457,10 +1457,10 @@ void Containment::setWallpaper(const QString &pluginName, const QString &mode)
if (!pluginName.isEmpty() && !d->wallpaper) { if (!pluginName.isEmpty() && !d->wallpaper) {
d->wallpaper = Plasma::Wallpaper::load(pluginName); d->wallpaper = Plasma::Wallpaper::load(pluginName);
d->wallpaper->setParent(this);
} }
if (d->wallpaper) { if (d->wallpaper) {
d->wallpaper->setParent(this);
d->wallpaper->setBoundingRect(QRectF(QPointF(0, 0), size())); d->wallpaper->setBoundingRect(QRectF(QPointF(0, 0), size()));
d->wallpaper->setRenderingMode(mode); d->wallpaper->setRenderingMode(mode);