Bug 339693

Summary: Category/Account view is not updated when options are turned off
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: kde, onet.cristian
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.1
Sentry Crash Report:

Description Thomas Baumgart 2014-10-05 09:08:25 UTC
Selecting to include a category in the tax report by marking the checkbox in the account dialog presents a check mark in the category view. Turning off the feature by unselecting the checkbox in the
account dialog does not remove the check mark in the category view.

Reproducible: Always

Steps to Reproduce:
1. Select category in category view
2. Edit it and select the 'Include on tax report' option. Save the settings
3. Edit the same category again and switch off the 'Include on tax report' option. Save the settings


Actual Results:  
Category view still shows the check mark in the Tax column

Expected Results:  
Category view shall not show the check mark in the Tax column

This should also be fixed in the 4.7 branch.
Comment 1 Thomas Baumgart 2014-10-05 09:10:08 UTC
Git commit cf16426575844043c6b1c4638e22582e0c799d1f by Thomas Baumgart.
Committed on 05/10/2014 at 09:00.
Pushed by tbaumgart into branch 'master'.

Update model completely when account data changes

Selecting to include a category in the tax report by marking the
checkbox in the account dialog presents a check mark in the category
view. Turning off the feature by unselecting the checkbox in the
account dialog did not remove the check mark in the category view.
This fixes the behavior.

M  +14   -7    kmymoney/models/accountsmodel.cpp

http://commits.kde.org/kmymoney/cf16426575844043c6b1c4638e22582e0c799d1f
Comment 2 Cristian Oneț 2014-10-22 05:04:03 UTC
*** Bug 340214 has been marked as a duplicate of this bug. ***
Comment 3 Cristian Oneț 2014-10-22 05:09:07 UTC
Git commit 03f4c27a29f5fc6427f48344d013a4ae966400b4 by Cristian Oneț, on behalf of Thomas Baumgart.
Committed on 05/10/2014 at 09:00.
Pushed by conet into branch '4.7'.

Update model completely when account data changes

Selecting to include a category in the tax report by marking the
checkbox in the account dialog presents a check mark in the category
view. Turning off the feature by unselecting the checkbox in the
account dialog did not remove the check mark in the category view.
This fixes the behavior.
(cherry picked from commit cf16426575844043c6b1c4638e22582e0c799d1f)

M  +14   -7    kmymoney/models/accountsmodel.cpp

http://commits.kde.org/kmymoney/03f4c27a29f5fc6427f48344d013a4ae966400b4
Comment 4 Cristian Oneț 2014-10-22 05:12:59 UTC
The fix will be available in 4.7.1.