Filter configure action out of overflow menu correctly

This code was trying to filter out the configure action but failing
because it was comparing a QMenuItem to a QAction. We need to compare
the QMenuItem's internal QAction in order for the configure action to
ever match.

Companion to 827afc3fc276d0d73b4e4d2f08e26c24a3e6ea71 in
plasma-workspace.
This commit is contained in:
Nate Graham 2021-05-18 07:52:21 -06:00
parent 5dfa851f7b
commit 8c443f504f

View File

@ -112,7 +112,7 @@ PlasmoidHeading {
action: modelData
}
onObjectAdded: {
if (object !== plasmoid.action("configure")) {
if (object.action !== plasmoid.action("configure")) {
configMenu.addMenuItem(object);
}
}