remove actions with menus also from corona ones

again, something different will be needed to support submenus here
This commit is contained in:
Marco Martin 2014-08-22 16:43:28 +02:00
parent 0f0006e4a9
commit d7472118c6

View File

@ -646,7 +646,7 @@ QList<QObject *> ContainmentInterface::actions() const
}
}
foreach (QAction *a, m_containment->corona()->actions()->actions()) {
if (a->objectName() == QStringLiteral("lock widgets")) {
if (a->objectName() == QStringLiteral("lock widgets") || a->menu()) {
//It is up to the Containment to decide if the user is allowed or not
//to lock/unluck the widgets, so corona should not add one when there is none
//(user is not allow) and it shouldn't add another one when there is already