Icons shown even when app has set Qt::AA_DontShowIconsInMenus

Bug #1287337 reported by CraigD
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdbusmenu-qt
New
Undecided
Unassigned
libdbusmenu-qt (Ubuntu)
New
Undecided
Unassigned

Bug Description

DBus menu exporter exports icons for menus even when QAction::isIconVisibleInMenu() returns false. DBusMenuExporter::iconNameForAction() correctly checks this property, and does not return an icon name if it is set to false. However, DBusMenuExporterPrivate::insertIconProperty() inserts a 16px PNG for the action if it has an icon and DBusMenuExporter::iconNameForAction() returned an empty string. Instead of DBusMenuExporterPrivate::insertIconProperty() just checking if the icon is valid, it should also check QAction::isIconVisibleInMenu() before creating the pixmap.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.