https://bugs.kde.org/show_bug.cgi?id=383202
Bug ID: 383202 Summary: System tray icon's context menu isn't updated properly in plasma/x11 Product: frameworks-knotifications Version: 5.34.0 Platform: Gentoo Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kdelibs-b...@kde.org Reporter: idarktemp...@mail.ru CC: kdelibs-b...@kde.org Target Milestone: --- Created attachment 107107 --> https://bugs.kde.org/attachment.cgi?id=107107&action=edit menubugtest.tar.bz2 When context menu of QSystemTrayIcon is changed in plasma/x11, it behaves weird. If the structure of menu is same, the text of some nested menu items doesn't correctly update, and if structure of menu changes, menu just shuffles somehow all items, maybe even lose some items. I'm attaching sources of test application. If you change menu from "menu 1" to "menu 2" you can see the case when nested menu items aren't updated, i.e. their text is not updated, but assigned actions are changed correctly. If you change menu from "menu 1" or "menu 2" to "menu 3" you can see the case when menu items are placed incorrectly or even missing. If you hide and show again system tray icon, regenerated menu shows correctly (until you change menu selection). I'm using: Qt 5.7.1 sni-qt 0.2.6-r1 libdbusmenu-qt 0.9.3_pre20160218. Also, the bug doesn't show up when one of following conditions is true: 1) plasma/x11 isn't used (I used LXQt desktop with openbox to test this). 2) environment variable KSNI_NO_DBUSMENU is set. Testing this application further, I've noticed that if you compile it against Qt4 and if checkbox "Show system tray icon" is unchecked, tray icon doesn't disappear, and when it's checked again, one more tray icon appears (with separate menu). Setting 'KSNI_NO_DBUSMENU' doesn't help to fix this issue, but it's not reproducible in LXQt. -- You are receiving this mail because: You are watching all bug changes.