[Kmymoney-devel] Possible misuse of KComboBox->setItemText()

Alvaro Soliverez asoliverez at kde.org
Fri Jul 30 04:49:42 CEST 2010


Hello,
it's the second time this week where I've found KComboBox using
setItemText incorrectly.
When porting, they seem to have been used to set the current item, but
the correct call for that is ->setCurrentIndex().

Instead, setItemText overrides the current item text, which created
problems in the edit investment wizard, and in the QIF profile editor.

My guess is, most if not all occurrences we find in the code will
result being wrong.

Regards,
Alvaro


More information about the KMyMoney-devel mailing list