<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>513883</bug_id>
          
          <creation_ts>2025-12-27 17:27:26 +0000</creation_ts>
          <short_desc>Crash when invoking calculator in amount widget</short_desc>
          <delta_ts>2025-12-27 17:38:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>git (master)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Thomas Baumgart">tbaumgart</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/-/commit/69b68eb735dbf8049e8387ccdf9298362e515ef3</cf_commitlink>
          <cf_versionfixedin>5.2.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2479918</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2025-12-27 17:27:26 +0000</bug_when>
    <thetext>SUMMARY &amp; STEPS TO REPRODUCE
When entering an amount edit widget in the transaction editor the full amount is selected (highlighted) by default. To reproduce the crash, only select a portion of the value. For example, if the amount is 36.00, only select 36. Then, press e.g. the slash key on the keyboard to divide.

OBSERVED RESULT
The window freezes and the app crashes. 

EXPECTED RESULT
I expect the calculator window to appear with the full amount being loaded.

ADDITIONAL INFORMATION
Highlighting the full amount (dollars and cents) works just fine without crashing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2479920</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2025-12-27 17:37:59 +0000</bug_when>
    <thetext>Git commit 7ed05dc50cf8eea74b720caab8aca69375db6833 by Thomas Baumgart.
Committed on 27/12/2025 at 17:37.
Pushed by tbaumgart into branch &apos;master&apos;.

Prevent infinite recursion in amount edit widget

When the text in the amount edit widget is only partially selected and a
math operation key is pressed an infinite recursion was caused which
leads to crashes. This change prevents this from happening.
FIXED-IN: 5.2.2

M  +0    -11   kmymoney/widgets/amountedit.cpp

https://invent.kde.org/office/kmymoney/-/commit/7ed05dc50cf8eea74b720caab8aca69375db6833</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2479921</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2025-12-27 17:38:20 +0000</bug_when>
    <thetext>Git commit 69b68eb735dbf8049e8387ccdf9298362e515ef3 by Thomas Baumgart.
Committed on 27/12/2025 at 17:38.
Pushed by tbaumgart into branch &apos;5.2&apos;.

Prevent infinite recursion in amount edit widget

When the text in the amount edit widget is only partially selected and a
math operation key is pressed an infinite recursion was caused which
leads to crashes. This change prevents this from happening.
FIXED-IN: 5.2.2
(cherry picked from commit 7ed05dc50cf8eea74b720caab8aca69375db6833)

M  +0    -11   kmymoney/widgets/amountedit.cpp

https://invent.kde.org/office/kmymoney/-/commit/69b68eb735dbf8049e8387ccdf9298362e515ef3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>