D7260: System tray icon's context menu isn't updated properly in plasma/x11
Aleksei Nikiforov
noreply at phabricator.kde.org
Fri Aug 11 20:25:00 UTC 2017
i.Dark_Templar created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY
This is a fix for a bug I recently reported at: https://bugs.kde.org/show_bug.cgi?id=383202
Basically, if you make system tray menu with multiple levels of nesting, browse this menu (making sure plasma fetches all data for menu via dbus) and then replace menu by different menu with multiple levels of nesting, plasma uses old data for all menu items, usually except of top level menu.
Proposed patch makes sure that no menus are cached, and if top-level menu is updated, all nested menus are updated as well (on aboutToShow event).
TEST PLAN
I've attached test application to the mentioned bug, it started working correctly with this patch on plasma-workspace-5.9.5.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D7260
AFFECTED FILES
libdbusmenuqt/dbusmenuimporter.cpp
To: i.Dark_Templar
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170811/f05c8287/attachment-0001.html>
More information about the Plasma-devel
mailing list