Bug 502596

Summary: Unexpected behaviour of functions Copy and Cut in Kcalk
Product: [Applications] kcalc Reporter: Olga <urozhaevaoo>
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gabriel.barrantes.dev, gustavo.vaz
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Video with issue

Description Olga 2025-04-09 07:38:00 UTC
Created attachment 180112 [details]
Video with issue

STEPS TO REPRODUCE
1.  Open Kcalc
2. Enter any number in the calculator -> Select the entered number -> Edit -> Cut
3. Enter any number in the calculator -> Select the entered number -> Edit -> Copy

OBSERVED RESULT
1. The selected number isn't cut from the input field. However, the key combination Ctrl+X works correctly.
If you enter, for example, 2+2  and then Edit -> Cut, the intermediate result will be cut
2. The selected number isn't copied from the input field. However, the key combination Ctrl+C  works correctly.
If you enter, for example,  2+2 and then Edit -> Copy, the intermediate result will be copied
Please refer to attached video with reproducing an issue

EXPECTED RESULT
1. The selected number was cut.
2. The selected number was copied and displayed in the clipboard

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  ALT Workstation K 11.0 Beta
KDE Frameworks Version:  6.12.0
Qt Version:  6.8.2
Comment 1 gusta-vaz 2025-06-25 16:29:47 UTC
Hi, I want to be a new contributor in KDE and this issue looks good to start. Is it available to work on?
Comment 2 Gabriel Barrantes 2025-06-25 23:14:48 UTC
(In reply to gusta-vaz from comment #1)
> Hi, I want to be a new contributor in KDE and this issue looks good to
> start. Is it available to work on?

yeah it is, but I think this is a duplicate, there are suggestions from users in other bug reports but eventually when I review the patch I can check if everything was implemented.
Comment 3 Gabriel Barrantes 2025-06-25 23:18:45 UTC
work on the original.

*** This bug has been marked as a duplicate of bug 492680 ***