a bit less convoluted and does the same thing
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=863697
This commit is contained in:
parent
2e8dba5df2
commit
cd7e48a164
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user