And in time for 4.1.
Editing languages should work now.
- after adding and then immediately removing a language one of the existing languages would be blown away
- reload the languages after they have been changed
CCMAIL: parley-devel@kde.org
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=821561
void KEduVocExpression::removeTranslation( int index )
{
- delete d->m_translations.take(index);
+ // remove the index we delete
+ d->m_translations.remove(index);
- for ( int j = index; j < d->m_translations.count(); j++ ) {
- d->m_translations[j] = d->m_translations.value(j+1);
+ // shift all other indexes
+ for ( int j = index; j < d->m_translations.count() - 1; j++ ) {
+ d->m_translations[j] = d->m_translations.take(j+1);
}
- d->m_translations.remove(d->m_translations.count() - 1);
}