Bug 512071

Summary: Ledger: mouse focus gets lost after deleting a transaction when search bar is used
Product: [Applications] kmymoney Reporter: surcouf <arnaudvillemain>
Component: ux-uiAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: view ledger with active text search AND delete action

Description surcouf 2025-11-14 11:43:08 UTC
Created attachment 186770 [details]
view ledger with active text search AND delete action

SUMMARY
I am editing old transactions in the ledger, say four until seven years old transactions.
When i delete one of them, the mouse focus drops to the bottom of the ledger and the newest transaction is selected, instead of staying where i was prior to deletion.

STEPS TO REPRODUCE
1. open the ledger of a checking account
2. press Ctrl+F
3. Enter a text to be searched and which is relevant for many transactions, e.g. "Salary"
4. you should see all transactions which match the "Salary" keyword
5. scroll up to older transactions, e.g. 50 transactions "higher".
6. click on one transaction and delete it

OBSERVED RESULT
the focus drops to the bottom of the ledger and the newest transaction is selected.
It is annoying because i must scroll up through many transactions after each deletion.

EXPECTED RESULT
the transaction which is right after the deleted transaction is selected.
In the attached screenshot, it would be the one booked on 03/02/2019


SOFTWARE/OS VERSIONS
KMyMoney: 5.2.1-be4919f
Alkimia: 8.2.70 (compilé à l'encontre de 8.2.70)
Aqbanking: Inconnu (compilé à l'encontre de 6.6.4)
Gpgme: Inconnu (compilé à l'encontre de 1.23.2)
Gwenhywfar: Inconnu (compilé à l'encontre de 5.13.0)
KDiagram: Inconnu (compilé à l'encontre de )
libical: Inconnu (compilé à l'encontre de 3.0.9)
libofx: Inconnu (compilé à l'encontre de 7.0.4)
SQLCipher: Inconnu (compilé à l'encontre de 3.20.1)
Environnement de développement de KDE: 6.19.0
Qt: Par utilisation de 6.9.2 et avec compilation avec 6.9.2
AppImage
Debian GNU/Linux 12 (bookworm) (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.1.0-41-amd64


ADDITIONAL INFORMATION
Many thanks for the very good software and continuous voluntary work which improves it.