Add KAuthorize containment_context_menu into createToolBox

Having the posibility of avoid the context_menu while we're
allowing the cashew has no sense. So let's use the same action
to lockdown both.
This commit is contained in:
Alex Fiestas 2011-04-11 15:06:27 +02:00
parent bd3f840f3b
commit d09061f758

View File

@ -2177,7 +2177,7 @@ void Containment::destroy(bool confirm)
void ContainmentPrivate::createToolBox()
{
if (!toolBox) {
if (!toolBox && KAuthorized::authorizeKAction("plasma/containment_context_menu")) {
toolBox = Plasma::AbstractToolBox::load(q->corona()->preferredToolBoxPlugin(type), QVariantList(), q);
if (toolBox) {