[Kmymoney-devel] [Bug 268274] kmymoney 4.5.3 hangs for ~60 seconds upon right clicking payee from payees tab

Cristian Onet onet.cristian at gmail.com
Thu Mar 24 20:45:55 CET 2011


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





--- Comment #2 from Cristian Onet <onet cristian gmail com>  2011-03-24 20:45:55 ---
Further information to help pinpoint the source of the problem:
Timer(KPayeesView::slotSelectPayee): 24 elapsed
Timer(KPayeesView::slotSelectPayee stage 2): 481 elapsed
Timer(KPayeesView::slotSelectPayee end): 11 elapsed
Timer(KPayeesView::slotSelectPayee): 0 elapsed
Timer(KPayeesView::slotSelectPayee stage 2): 482 elapsed
Timer(KPayeesView::slotSelectPayee end): 10 elapsed
Timer(KPayeesView::slotSelectPayee): 258 elapsed
Timer(KPayeesView::slotSelectPayee stage 2): 479 elapsed
Timer(KPayeesView::slotSelectPayee end): 11 elapsed

Where "stage 2" means that I had split the KPayeesView::slotSelectPayee
function in two because it's pretty complex with "stage 2" beginning from line
417. As it can be seen from this trace the performance problem is somewhere
between lines 370 and 417.

Some examples would be:
    for (int i = 0; i < m_payeesList->count(); ++i)
      m_payeesList->item(i)->setFlags(Qt::ItemIsSelectable |
Qt::ItemIsEnabled);

and 
  for (int i = 0; i < m_payeesList->count(); ++i)
    m_payeesList->item(i)->setFlags(Qt::ItemIsEditable | Qt::ItemIsSelectable |
Qt::ItemIsEnabled);

each of these calls emmit an itemChanged signal which is connected to
slotRenamePayee which indeed does nothing if m_allowEditing is false.

-- 
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