Bug 514317 - Second label cut in Kicad fails to paste (first label cut pastes just fine)
Summary: Second label cut in Kicad fails to paste (first label cut pastes just fine)
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 6.5.4
Platform: Fedora RPMs Linux
: HI normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-08 09:54 UTC by vtpieter
Modified: 2026-03-13 20:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: wxWidgets 3.3.3
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vtpieter 2026-01-08 09:54:52 UTC
SUMMARY

Cutting/Pasting is broken in KiCad - I get the previous content of what's on my clipboard. Copying/Pasting does work correctly. It only happens with KiCad so far, most other text-based applications do seem to work correctly. From analyzing the clipboard's history, it seems that the 2nd cut-action is not stored in the clipboard. Since KiCad is text-based, it's rather easy to track its clipboard contents.

Disabling Klipper through the System Tray Settings is a workaround; the cutting/pasting behaviour in KiCad then works as expected. Bug reported at Kicad first, see https://gitlab.com/kicad/code/kicad/-/issues/22661, but since disabling Klipper fixes it I reckon the bug is rather there.

STEPS TO REPRODUCE
1. install KiCad 9.* ; open its Schematic Editor (Eeschema)
2. add 2  net labels (Place>Place Net Labels)
3. Cut label1
4. Paste -> label1 will be pasted -> expected behavior
5. Cut label2.
6. Paste -> label1 will be pasted -> BUG

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 on Asahi Linux
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.9.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2026-01-08 21:54:53 UTC
Can you see if this still happens after upgrading to Frameworks 6.22? It's being released tomorrow, and Fedora should have it packaged and shipped pretty quickly.
Comment 2 vtpieter 2026-01-09 07:34:34 UTC
(In reply to Nate Graham from comment #1)
> Can you see if this still happens after upgrading to Frameworks 6.22? It's
> being released tomorrow, and Fedora should have it packaged and shipped
> pretty quickly.

OK will do. I have another Ubuntu 2025.10 machine with the same issue BTW, maybe that helps to test with the latest Frameworks. Any commit you think that would have solved this issue?
Comment 3 Nate Graham 2026-01-09 16:32:53 UTC
The commits in https://invent.kde.org/frameworks/kguiaddons/-/merge_requests/191 are what I had in mind.
Comment 4 vtpieter 2026-02-21 16:43:40 UTC
(In reply to Nate Graham from comment #1)
> Can you see if this still happens after upgrading to Frameworks 6.22? It's
> being released tomorrow, and Fedora should have it packaged and shipped
> pretty quickly.

I just had KDE updated and tried again, it's _not_ fixed but the behavior did change to the following:

STEPS TO REPRODUCE
1. install KiCad 9.* ; open its Schematic Editor (Eeschema)
2. add 2  net labels (Place>Place Net Labels)
3. Cut label1
4. Paste -> label1 will be pasted -> expected behavior
5. Cut label2.
6. Paste -> _nothing_  will be pasted -> BUG

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 42 on Asahi Linux
KDE Plasma Version: 6.6.0
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.2
Comment 5 Nate Graham 2026-02-24 19:32:27 UTC
With git master of everything KDE on KDE Linux, I can reproduce those steps. For me too, now nothing is pasted after I copy label2.
Comment 6 Bug Janitor Service 2026-02-26 16:35:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/8886
Comment 7 David Edmundson 2026-03-05 14:02:38 UTC
100% a wxWidgets bug. I've written it up here: https://github.com/wxWidgets/wxWidgets/issues/26265

I'll leave this open and put in a workaround.
Comment 8 Nate Graham 2026-03-13 20:40:23 UTC
David submitted https://github.com/wxWidgets/wxWidgets/pull/26278 upstream, which was accepted and merged for wxWidgets 3.3.3!
Comment 9 vtpieter 2026-03-13 20:47:45 UTC
Great job analyzing and eventually fixing the bug yourself in wxWidgets. Thanks!