From 827afc3fc276d0d73b4e4d2f08e26c24a3e6ea71 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Sun, 16 May 2021 20:19:20 -0600 Subject: [PATCH] [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. --- .../systemtray/package/contents/ui/ExpandedRepresentation.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml b/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml index f01c3a250..714aae293 100644 --- a/applets/systemtray/package/contents/ui/ExpandedRepresentation.qml +++ b/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); } }