Bug 460950

Summary: Adding a new category, it will ignore currency setting and use the default
Product: [Applications] kmymoney Reporter: Dawid Wróbel <me>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: adi.sav
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 5.2
Sentry Crash Report:

Description Dawid Wróbel 2022-10-24 16:04:17 UTC
SUMMARY
When adding a new category, the currency chosen is ignored — after saving the currency will be the default book currency..

STEPS TO REPRODUCE
1. Add a new category
2. Choose a currency that is not a default one for the book

OBSERVED RESULT
Currency of the category is the default one for the book

EXPECTED RESULT
Currency should be as chosen
Comment 1 Dawid Wróbel 2022-10-24 16:04:48 UTC
This applies to changing a currency of existing account as well.
Comment 2 adi.sav 2022-10-24 18:12:57 UTC
I can confirm this bug.
Comment 3 Thomas Baumgart 2022-10-24 19:35:06 UTC
Git commit 186184d0c0a2971387d53aa1da63a23cef41874d by Thomas Baumgart.
Committed on 24/10/2022 at 19:34.
Pushed by tbaumgart into branch 'master'.

Setup account object before the dialog is closed

M  +14   -20   kmymoney/dialogs/knewaccountdlg.cpp

https://invent.kde.org/office/kmymoney/commit/186184d0c0a2971387d53aa1da63a23cef41874d
Comment 4 adi.sav 2022-10-25 08:30:51 UTC
(In reply to Thomas Baumgart from comment #3)

I confirm it being fixed in nightly build 1688. Thank you! :)
Comment 5 Thomas Baumgart 2022-10-26 10:49:12 UTC
Git commit 55e5c3c3723b682ffa23fcb2104e04bf40994cb2 by Thomas Baumgart.
Committed on 26/10/2022 at 10:48.
Pushed by tbaumgart into branch '5.1'.

Setup account object before the dialog is closed
FIXED-IN: 5.1.4

(cherry picked from commit 186184d0c0a2971387d53aa1da63a23cef41874d)

M  +13   -12   kmymoney/dialogs/knewaccountdlg.cpp

https://invent.kde.org/office/kmymoney/commit/55e5c3c3723b682ffa23fcb2104e04bf40994cb2
Comment 6 Thomas Baumgart 2022-10-27 06:30:11 UTC
*** Bug 460949 has been marked as a duplicate of this bug. ***