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:
parent
bd3f840f3b
commit
d09061f758
@ -2177,7 +2177,7 @@ void Containment::destroy(bool confirm)
|
|||||||
|
|
||||||
void ContainmentPrivate::createToolBox()
|
void ContainmentPrivate::createToolBox()
|
||||||
{
|
{
|
||||||
if (!toolBox) {
|
if (!toolBox && KAuthorized::authorizeKAction("plasma/containment_context_menu")) {
|
||||||
toolBox = Plasma::AbstractToolBox::load(q->corona()->preferredToolBoxPlugin(type), QVariantList(), q);
|
toolBox = Plasma::AbstractToolBox::load(q->corona()->preferredToolBoxPlugin(type), QVariantList(), q);
|
||||||
|
|
||||||
if (toolBox) {
|
if (toolBox) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user