Bug 488578 - In Edit mode, hovering over a panel shows the wrong label after right-clicking on that panel
Summary: In Edit mode, hovering over a panel shows the wrong label after right-clickin...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Edit Mode (other bugs)
Version First Reported In: master
Platform: Other Linux
: LO minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 499999 508313 524364 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-06-16 11:27 UTC by cwo
Modified: 2026-09-01 08:26 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.7.5 and 6.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cwo 2024-06-16 11:27:03 UTC
In (desktop) Edit mode, hovering over a panel shows a tooltip-like structure showing "Show Panel Configuration". (Same as the context menu entry). After a right-click on the panel, this label changes, and remains different until the user exits Edit mode. On entering Edit mode again, the label resets to the normal text again (until a panel is right-clicked).

STEPS TO REPRODUCE
1. Right-click the desktop, "Enter Edit Mode"
2. In Edit mode, hover over the panel. Verify it shows "Show Panel Configuration"
3. Right-click that panel, then close the context menu with another right click.
4. Hover over the panel until the label appears again.

OBSERVED RESULT

The label now reads "Show &Panel Configuration" 

EXPECTED RESULT

The label is unchanged from before, displaying "Show Panel Configuration" (i.e. without the Ampersand in front of the word "Panel"). 

SOFTWARE/OS VERSIONS

Current Neon DevE.


Linux: 6.5.0-35-generic 
KDE Plasma Version: 6.1.80
KDE Frameworks Version:  6.4.0
Qt Version: 6.7.0
Comment 1 Nate Graham 2024-06-17 18:43:07 UTC
Can reproduce.
Comment 2 Nate Graham 2024-06-17 18:43:14 UTC Comment hidden (spam)
Comment 3 Bug Janitor Service 2024-10-02 20:30:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2567
Comment 4 Niccolò Venerandi 2024-11-08 12:55:01 UTC
Git commit a1d436cc753e6afb3154591bddca418eb092214a by Niccolò Venerandi.
Committed on 08/11/2024 at 12:54.
Pushed by niccolove into branch 'master'.

Remove mnemonic character from panel tooltip

M  +7    -2    containments/panel/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/a1d436cc753e6afb3154591bddca418eb092214a
Comment 5 Nate Graham 2025-02-19 14:34:02 UTC
This is unfortunately reproducible again in Plasma 6.3.
Comment 6 Nate Graham 2025-02-19 14:34:13 UTC
*** Bug 499999 has been marked as a duplicate of this bug. ***
Comment 7 TraceyC 2025-08-15 22:30:41 UTC
*** Bug 508313 has been marked as a duplicate of this bug. ***
Comment 8 TraceyC 2025-08-15 22:31:03 UTC
Still present in git-master for 6.5
Comment 9 cwo 2026-08-17 15:43:48 UTC
*** Bug 524364 has been marked as a duplicate of this bug. ***
Comment 10 Fernando Marcelino Muniz 2026-08-17 15:48:51 UTC
Present in Plasma 6.7.4
Comment 11 Bug Janitor Service 2026-08-17 18:57:22 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3954
Comment 12 Tobias Fella 2026-08-25 14:33:06 UTC
Git commit 0cc0befa7cfe482b389af284070469fea89b1f0c by Tobias Fella, on behalf of Christoph Wolk.
Committed on 25/08/2026 at 14:28.
Pushed by tfella into branch 'master'.

containments/panel: strip mnemonics from tooltip

The Panel edit mode tooltip takes its text from the configure
internalAction. ContainmentItem may add mnemonic markers to the
action text when it's shown in a context menu. This is fine in a
context menu where these are handled, but breaks if it's used directly.
The tooltip tries to strip the marker with regular expressions, but
this broke at some point, and is hard to maintain.

We already have machinery that strips this in Kirigami.MnemonicData.
Let's use it here as well for simpler and more robust code.

M  +3    -6    containments/panel/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/0cc0befa7cfe482b389af284070469fea89b1f0c
Comment 13 cwo 2026-09-01 08:26:08 UTC
Git commit 058537ce719985ffe18be1d029586415959f7ad3 by Christoph Wolk.
Committed on 01/09/2026 at 08:04.
Pushed by cwo into branch 'Plasma/6.7'.

containments/panel: strip mnemonics from tooltip

The Panel edit mode tooltip takes its text from the configure
internalAction. ContainmentItem may add mnemonic markers to the
action text when it's shown in a context menu. This is fine in a
context menu where these are handled, but breaks if it's used directly.
The tooltip tries to strip the marker with regular expressions, but
this broke at some point, and is hard to maintain.

We already have machinery that strips this in Kirigami.MnemonicData.
Let's use it here as well for simpler and more robust code.


(cherry picked from commit 0cc0befa7cfe482b389af284070469fea89b1f0c)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +3    -6    containments/panel/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/058537ce719985ffe18be1d029586415959f7ad3