remove manus from plasmoid.actions
not really solution-solution, but not really other ways due to QAction api so will stay this way for a long time CCBUG:338317
This commit is contained in:
parent
8596689f2c
commit
0f0006e4a9
@ -639,8 +639,12 @@ QList<QObject *> ContainmentInterface::actions() const
|
||||
//use a multimap to sort by action type
|
||||
QMultiMap<int, QObject *> actions;
|
||||
foreach (QAction *a, m_containment->actions()->actions()) {
|
||||
//FIXME QML visualizations don't support menus for now, *and* there is no way to
|
||||
//distinguish them on QML side
|
||||
if (!a->menu()) {
|
||||
actions.insert(a->data().toInt(), a);
|
||||
}
|
||||
}
|
||||
foreach (QAction *a, m_containment->corona()->actions()->actions()) {
|
||||
if (a->objectName() == QStringLiteral("lock widgets")) {
|
||||
//It is up to the Containment to decide if the user is allowed or not
|
||||
|
Loading…
Reference in New Issue
Block a user