a bit less convoluted and does the same thing

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863697
This commit is contained in:
Aaron J. Seigo 2008-09-22 21:50:01 +00:00
parent 2e8dba5df2
commit cd7e48a164

View File

@ -1194,12 +1194,12 @@ void Containment::removeAssociatedWidget(QWidget *widget)
void Containment::setDrawWallpaper(bool drawWallpaper)
{
d->drawWallpaper = drawWallpaper;
if (d->drawWallpaper) {
if (drawWallpaper) {
KConfigGroup cfg = config();
QString wallpaper = cfg.readEntry("wallpaperplugin", defaultWallpaper);
QString mode = cfg.readEntry("wallpaperpluginmode", defaultWallpaperMode);
setWallpaper(wallpaper, mode);
} else if (!d->drawWallpaper && d->wallpaper) {
} else {
delete d->wallpaper;
d->wallpaper = 0;
}