restore lock action on immutability change

svn path=/trunk/KDE/kdelibs/; revision=1033910
This commit is contained in:
Marco Martin 2009-10-11 14:48:03 +00:00
parent d7021b22c2
commit 14dd33ec4a

View File

@ -699,6 +699,8 @@ void Corona::setImmutability(const ImmutabilityType immutable)
bool unlocked = d->immutability == Mutable;
action->setText(unlocked ? i18n("Lock Widgets") : i18n("Unlock Widgets"));
action->setIcon(KIcon(unlocked ? "object-locked" : "object-unlocked"));
action->setEnabled(true);
action->setVisible(true);
}
}