diff --git a/containmentactions/contextmenu/menu.cpp b/containmentactions/contextmenu/menu.cpp --- a/containmentactions/contextmenu/menu.cpp +++ b/containmentactions/contextmenu/menu.cpp @@ -71,11 +71,11 @@ if (c->containmentType() == Plasma::Types::PanelContainment || c->containmentType() == Plasma::Types::CustomPanelContainment) { - m_actionOrder << QStringLiteral("add widgets") << QStringLiteral("_add panel") << QStringLiteral("lock widgets") << QStringLiteral("_context") << QStringLiteral("configure") << QStringLiteral("remove"); + m_actionOrder << QStringLiteral("add widgets") << QStringLiteral("_add panel") << QStringLiteral("_context") << QStringLiteral("configure") << QStringLiteral("remove"); } else { actions.insert(QStringLiteral("configure shortcuts"), false); m_actionOrder << QStringLiteral("_context") << QStringLiteral("_run_command") << QStringLiteral("add widgets") << QStringLiteral("_add panel") - << QStringLiteral("manage activities") << QStringLiteral("remove") << QStringLiteral("lock widgets") << QStringLiteral("edit mode") << QStringLiteral("_sep1") + << QStringLiteral("manage activities") << QStringLiteral("remove") << QStringLiteral("edit mode") << QStringLiteral("_sep1") <isUserConfiguring() || (c->containmentType() != Plasma::Types::PanelContainment - && c->containmentType() != Plasma::Types::CustomPanelContainment)) { - - if (name != QLatin1String("lock widgets") || c->corona()->immutability() != Plasma::Types::Mutable) { + && c->containmentType() != Plasma::Types::CustomPanelContainment + && c->corona()->immutability() != Plasma::Types::Mutable)) { actions << a; - } } } } @@ -178,10 +176,6 @@ if (KAuthorized::authorize(QStringLiteral("logout"))) { return m_logoutAction; } - } else if (name == QLatin1String("lock widgets")) { - if (c->corona()) { - return c->corona()->actions()->action(QStringLiteral("lock widgets")); - } } else if (name == QLatin1String("edit mode")) { if (c->corona()) { return c->corona()->actions()->action(QStringLiteral("edit mode"));