Bug 489287

Summary: Starting an expression using the result of previous expression doesn't work.
Product: [Applications] kcalc Reporter: Hirad <redstar>
Component: generalAssignee: Evan Teran <evan.teran>
Status: RESOLVED DUPLICATE    
Severity: critical CC: gabriel.barrantes.dev
Priority: NOR    
Version: 24.05.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: a video of how it can be reproduced

Description Hirad 2024-06-27 07:30:10 UTC
Created attachment 171068 [details]
a video of how it can be reproduced

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Enter 2 + 2
2. Press Enter and see the result 4
3. Enter + 6

OBSERVED RESULT
It just starts a new expression from the start, displaying +6

EXPECTED RESULT
because an operator is entered before the number, it must use the result of the previous expression as the first input number. So it must show 10

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 5.116
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 Antonio Rojas 2024-06-27 07:42:24 UTC

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