Bug 484920

Summary: Security 'USD' not found. /home/user/src/kmymoney-master/kmymoney/mymoney/mymoneyfile.cpp:3217
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 5.2
Sentry Crash Report:
Attachments: test file

Description Ralf Habacker 2024-04-02 11:22:10 UTC
Created attachment 168050 [details]
test file

STEPS TO REPRODUCE
1. start kmymoney
2. open attached kmymoney file
3. Select "Extras->Currencies" and press "Remove unused currencies"

OBSERVED RESULT
A dialog box is shown 

Unhandled bug: Please report the details to the developers

Security 'USD' not found. /home/user/src/kmymoney-master/kmymoney/mymoney/mymoneyfile.cpp:3217

After pressing "okay" kmymoney crashes

EXPECTED RESULT
kmymoney should not crash


SOFTWARE/OS VERSIONS
Linux:  openSUSE Leap 15.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Thomas Baumgart 2024-04-05 06:40:07 UTC
Git commit f706b45c3e2e4b78d7d26fb00b8828a2e8f68e2a by Thomas Baumgart.
Committed on 05/04/2024 at 06:39.
Pushed by tbaumgart into branch 'master'.

Check item itself for reference not only children

In a tree model structure child items where not checked for the
reference to an object id at all. This change fixes that.
FIXED-IN: 5.2

M  +1    -0    kmymoney/mymoney/storage/mymoneymodel.h

https://invent.kde.org/office/kmymoney/-/commit/f706b45c3e2e4b78d7d26fb00b8828a2e8f68e2a