[Kmymoney-devel] [Bug 276322] Unwanted fields show in ledger for investment.

allan agander93 at gmail.com
Sun Jun 26 12:34:52 CEST 2011


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





--- Comment #1 from allan <agander93 gmail com>  2011-06-26 10:34:52 ---
I've been looking at this, but am stuck:-(

I traced where it is going wrong, but, to me, the code looks OK.  In
investtransactioneditor.cpp,  InvestTransactionEditor::slotUpdateActivity(),
circa line 835, the following code appears -

  dynwidgets << "asset-account" << "interest-amount" << "fee-amount" <<   
"shares" << "price" << "total";

  for (it_s = dynwidgets.constBegin(); it_s != dynwidgets.constEnd(); ++it_s) {
    QWidget* w = haveWidget(*it_s);
    if (w) 
      w->hide();
  }
I can change the 'w->hide()' to w->setDisabled(true) and that seems to work, or
I can insert a messagebox() before the 'for' statement, and then the edit boxes
do get hidden as expected, but I haven't yet found a proper fix.

I don't know if this is a timing issue, but, whether or not, what needs to be
done?  I'm clutching at straws here!  Thanks.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list