[applets/systemtray] 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.
wilder-5.24
Nate Graham 5 years ago
parent 505471910f
commit 827afc3fc2
  1. 2
      applets/systemtray/package/contents/ui/ExpandedRepresentation.qml

@ -165,7 +165,7 @@ Item {
action: modelData
}
onObjectAdded: {
if (object !== actionsButton.applet.action("configure")) {
if (object.action !== actionsButton.applet.action("configure")) {
configMenu.addMenuItem(object);
}
}

Loading…
Cancel
Save