Bug 319461 - Interest account name cleared when new fee entry created
Summary: Interest account name cleared when new fee entry created
Status: RESOLVED DUPLICATE of bug 322768
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 10:48 UTC by allan
Modified: 2014-09-24 12:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description allan 2013-05-07 10:48:43 UTC
At first, I couldn't always reproduce this, as it happens only when a new fee account is added to a new transaction.
In a new Dividend transaction, if an interest account is added and then a fee account, when the fee wizard is closed, the interest account name has been deleted.

Reproducible: Always

Steps to Reproduce:
1. Create a new Dividend transaction.
2. Enter a new interest account and value.
3. Enter a new fee account name and complete the wizard.
4. When the wizard is closed, the interest name field has been cleared.

Actual Results:  
As in 4. above.

Expected Results:  
The interest account name should not be cleared, as happens if an existing transaction is edited instead of a new one being created.

InvestTransactionEditor::slotReloadEditWidgets() gets called and because splits.count() is zero, 
case 0: in the switch instruction is entered, where category->clearEditText() clears the interest account name.
I'm unclear why that instruction is there and removing it resolves the problem, and so far I see no ill effects.
Can anyone see why it might need to be there, please?
Comment 1 Cristian Oneț 2014-09-24 12:15:47 UTC

*** This bug has been marked as a duplicate of bug 322768 ***