we actually need to set the d->mode member here; background selector works again

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=849986
This commit is contained in:
Aaron J. Seigo 2008-08-20 15:21:53 +00:00
parent 6101f26c52
commit ddf2c2cf5d

View File

@ -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<KServiceAction> modes = listRenderingModes();
foreach (const KServiceAction &action, modes) {
if (action.name() == mode) {
modeAction = action;
d->mode = action;
break;
}
}
}