parent the wallpaper so it gets deleted when we get deleted

svn path=/trunk/KDE/kdelibs/; revision=950829
This commit is contained in:
Aaron J. Seigo 2009-04-07 21:00:26 +00:00
parent 59a6afb815
commit deb92dbdf5

View File

@ -1363,6 +1363,7 @@ 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) {