[Kmymoney-devel] [kmymoney4] [Bug 316042] KMyMoney hangs when editing transaction in anon file

allan agander93 at gmail.com
Mon Mar 4 12:05:59 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=316042

--- Comment #10 from allan <agander93 at gmail.com> ---
I think we have two separate problems here  - The first being editing of the
fee field is being ignored, and the second is the anon.xml file looping, and
think it would be as well to separate them.
For now, the looping occurs in the while() loop in
InvestTransactionEditor::priceModeE InvestTransactionEditor::priceMode(void)
const.

while (!accId.isEmpty() && mode == 0) {
    MyMoneyAccount acc = MyMoneyFile::instance()->account(accId);
    if (acc.value("priceMode").isEmpty()) 
      accId = acc.parentAccountId();
    else
      mode = static_cast<priceModeE>(acc.value("priceMode").toInt());
  }

Initially, acc.value("priceMode").isEmpty() is true and the parent (the
investment) account id gets used.  In the parent account, <PAIR key="priceMode"
value="x"/>, and mode equates to '0' so the loop continues.

How does the parent account, <PAIR key="priceMode" get set by the user?  It's
in the xml file.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list