Bug 496911

Summary: Equal signs in pasted input are processed as multiplication signs.
Product: [Applications] kcalc Reporter: qaliboire.bug_report
Component: generalAssignee: Gabriel Barrantes <gabriel.barrantes.dev>
Status: CONFIRMED ---    
Severity: normal CC: gabriel.barrantes.dev
Priority: NOR    
Version First Reported In: 24.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description qaliboire.bug_report 2024-12-02 00:59:19 UTC
SUMMARY
An expression of the type `A=B`, when pasted in the input field, gives the same result as `A*B`.

STEPS TO REPRODUCE
1. Open KCalc in simple mode;
2. paste `3+2=5` in the input field and press the "Return" key.

OBSERVED RESULT
The input field now shows "13". The history shows "3+2=5=13".

EXPECTED RESULT
I would expect the behavior shown with other unparsable inputs, i.e. the result field shows an "Input error" warning, the input field remains unchanged (allowing me to correct my input), and the history remains empty.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 40
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
None.