<?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>506627</bug_id>
          
          <creation_ts>2025-07-05 09:50:36 +0000</creation_ts>
          <short_desc>Last added transaction not selected in the ledger</short_desc>
          <delta_ts>2025-07-05 11:41:00 +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>ux-ui</component>
          <version>5.2.0</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>gbcreation73</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/-/commit/a2824866f6c5ca3a86f6c7bcf3d74944f266cb77</cf_commitlink>
          <cf_versionfixedin>5.2.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2438658</commentid>
    <comment_count>0</comment_count>
    <who name="">gbcreation73</who>
    <bug_when>2025-07-05 09:50:36 +0000</bug_when>
    <thetext>SUMMARY

When creating a new transaction in a ledger, it is added at the right position in the list depending on its date but it is not selected (the last transaction of the list is selected). In previous versions of Kmymoney, the just added transaction was automatically selected in the list, what allows to visually check that it is at the right position according to its date.

STEPS TO REPRODUCE
1. Add a new transaction whose date is before some existing transactions
2. After clicking the Enter button, see that the last transaction of the list is selected instead of the newly created one

OBSERVED RESULT

The last transaction of the list is selected

EXPECTED RESULT

The newly created transaction should be selected

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.4.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2438667</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2025-07-05 11:40:18 +0000</bug_when>
    <thetext>Git commit d83147a35411a1067e7b905ec584a0eef20a3b9a by Thomas Baumgart.
Committed on 05/07/2025 at 11:40.
Pushed by tbaumgart into branch &apos;master&apos;.

Select newly entered transaction as current transaction
FIXED-IN: 5.2.1

M  +1    -0    kmymoney/views/investtransactioneditor.cpp
M  +1    -0    kmymoney/views/newtransactioneditor.cpp
M  +16   -0    kmymoney/views/transactioneditorbase.cpp
M  +7    -0    kmymoney/views/transactioneditorbase.h

https://invent.kde.org/office/kmymoney/-/commit/d83147a35411a1067e7b905ec584a0eef20a3b9a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2438668</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2025-07-05 11:41:00 +0000</bug_when>
    <thetext>Git commit a2824866f6c5ca3a86f6c7bcf3d74944f266cb77 by Thomas Baumgart.
Committed on 05/07/2025 at 11:40.
Pushed by tbaumgart into branch &apos;5.2&apos;.

Select newly entered transaction as current transaction
FIXED-IN: 5.2.1
(cherry picked from commit d83147a35411a1067e7b905ec584a0eef20a3b9a)

M  +1    -0    kmymoney/views/investtransactioneditor.cpp
M  +1    -0    kmymoney/views/newtransactioneditor.cpp
M  +16   -0    kmymoney/views/transactioneditorbase.cpp
M  +7    -0    kmymoney/views/transactioneditorbase.h

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

    </bug>

</bugzilla>