Bug 379258

Summary: Global menu does not update properly if application adds new menu items
Product: [Plasma] plasmashell Reporter: Kishore Gopalakrishnan <kishore96>
Component: Global Menu widgetAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED UPSTREAM    
Severity: normal CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.9.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2017-04-26 15:56:41 UTC
When applications change the items shown in the menubar, the global menu does not update properly. Instead of replacing the old items with the new items, it adds the new entries to the right of the old entries, with the old entries becoming no longer clickable. Trying to click on the old entries sometimes crashes plasmashell. This happens only with the global menu plasmoid. The global menu which appears as a dropdown menu in the titlebar of applications updates properly.

Till now, I have been able to reproduce this with FreeCAD (menu items change depending on the workbench selected). FreeCAD uses qt4, and I'm using appmenu-qt4 (package: https://www.archlinux.org/packages/community/x86_64/appmenu-qt4/ ) (upstream URL: https://launchpad.net/appmenu-qt )to allow the global menu to work for qt4 applications.
Comment 1 Kishore Gopalakrishnan 2017-08-25 09:22:30 UTC
I tried with the qt5 version of FreeCAD, and the bug does not occur. This seems to be a bug in the appmenu-qt4 program, and not plasmashell itself.
Comment 2 Kai Uwe Broulik 2017-08-25 09:29:14 UTC
Thanks for investigating. I'll close this then, Qt4 global menu isn't really supported anymore (definitely not tested with Plasma 5 anyway)