From ddf2c2cf5d60888f68a822074880fc6e091b1361 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 20 Aug 2008 15:21:53 +0000 Subject: [PATCH] we actually need to set the d->mode member here; background selector works again svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849986 --- wallpaper.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallpaper.cpp b/wallpaper.cpp index 630b890f4..5d91004ef 100644 --- a/wallpaper.cpp +++ b/wallpaper.cpp @@ -171,13 +171,14 @@ void Wallpaper::setBoundingRect(const QRectF& boundingRect) void Wallpaper::restore(const KConfigGroup &config, const QString &mode) { - KServiceAction modeAction; + d->mode = KServiceAction(); if (!mode.isEmpty()) { QList modes = listRenderingModes(); foreach (const KServiceAction &action, modes) { if (action.name() == mode) { - modeAction = action; + d->mode = action; + break; } } }