Bug 320598

Summary: update button disabled in payee view after suggesting a default category for the payee
Product: [Applications] kmymoney Reporter: lukasz
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description lukasz 2013-06-02 07:16:49 UTC
Quoting Brendan Coupe's mail from the dev list:
Select a Payee with a default account set. Click the "Suggest a Category" button. If the suggested category is different it changes in the drop down list above the button but the "Update" button at the bottom of the screen remains disabled so I can not save my change. If I select the same suggested category from the drop down list then the Update button is enabled.

You can reproduce this bug by changing the Default category to one that is definitely not going to be suggested, click the update button and then click the Suggest a category button.


Reproducible: Always

Steps to Reproduce:
1. Click Payees
2. Select a payee which has a default category assigned and "Use default account for new transactions [...]" checked
3. Select a different default category
4. Click "Update" button
5. Click "Suggest a category" so that the selected category reverts to its prior value (it's crucial that the default category changes back its value!)
Actual Results:  
"Update" button remains disabled

Expected Results:  
"Update" button changes to enabled
Comment 1 lukasz 2013-06-02 08:25:08 UTC
Git commit 406ce81b2b39ad9ef6439903d15038f7b9a3127f by Lukasz Maszczynski.
Committed on 02/06/2013 at 10:20.
Pushed by lukaszm into branch 'master'.

fixed disabled "Update" button after suggesting a new default category

The "Update" button remained disabled when a payee had already a default
category assigned and it was changed by clicking "Suggest a new
category" button.

M  +18   -8    kmymoney/views/kpayeesview.cpp
M  +10   -0    kmymoney/views/kpayeesview.h

http://commits.kde.org/kmymoney/406ce81b2b39ad9ef6439903d15038f7b9a3127f