KIO: try to assign an icon to action submenus

Chloe Kudryavtsev toast at toast.cafe
Tue Mar 3 17:29:47 GMT 2020


Currently, action submenus (X-KDE-Submenu) have no icons.
This patch makes it inherit the icon of the first action.
There will always be at least one action, since empty submenus are
eliminated earlier in the function.
If the icon of the first action is empty, it will gracefully revert to
old behavior (not having an icon).

Please find the single-line patch attached (I have little desire to make
yet another account in phabricator, especially for such a small patch,
and was encouraged to send the patch via email on irc).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: menuicon.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200303/8305cef3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xEB24BAD412DE2823.asc
Type: application/pgp-keys
Size: 884 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200303/8305cef3/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200303/8305cef3/attachment.sig>


More information about the Kde-frameworks-devel mailing list