remove actions with menus also from corona ones
again, something different will be needed to support submenus here
This commit is contained in:
parent
0f0006e4a9
commit
d7472118c6
@ -646,7 +646,7 @@ QList<QObject *> ContainmentInterface::actions() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach (QAction *a, m_containment->corona()->actions()->actions()) {
|
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
|
//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
|
//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
|
//(user is not allow) and it shouldn't add another one when there is already
|
||||||
|
Loading…
Reference in New Issue
Block a user