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:
parent
6101f26c52
commit
ddf2c2cf5d
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user