Bug 508545

Summary: Issue with KDE Global Menu
Product: [Applications] kcalc Reporter: Tim B. <dev>
Component: generalAssignee: Evan Teran <evan.teran>
Status: REPORTED ---    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of behavior

Description Tim B. 2025-08-21 01:59:16 UTC
Created attachment 184304 [details]
Screenshot of behavior

SUMMARY

In KDE Global Menu, there is a "Constants" menu. It has no items contained. When switching calculators from Simple Mode to any other calculator - i.e. Simple Mode to Statistics Mode, or Scientific Mode - a new Constants menu is created. This Constants menu is populated correctly. The others are all empty. As far as I can tell it's possible to create new Constants menus endlessly this way.

STEPS TO REPRODUCE
1. Add Global Menu to any panel in KDE
2. Open KCalc
3. Switch calculator mode from Simple Mode -> anything else

OBSERVED RESULT

New "Constants" menus keep being created in the Global Menu.

EXPECTED RESULT

One "Constants" menu should remain constant, with only its contents manipulated during calculator changes.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS:  N/A
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION