From: Frederik Gladhorn Date: Sat, 1 Mar 2008 10:27:06 +0000 (+0000) Subject: port 780834 to trunk - When changing the text of a translation, only change the text... X-Git-Tag: v4.0.71~35 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=ba4a69b83597b6e4b2855c9e1accb7f6ebf8dea9;p=libqmvoc.git port 780834 to trunk - When changing the text of a translation, only change the text, not reset all it's other properties like conjugations. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=780836 --- diff --git a/keduvocdocument/keduvocexpression.cpp b/keduvocdocument/keduvocexpression.cpp index e21395e..35cf692 100644 --- a/keduvocdocument/keduvocexpression.cpp +++ b/keduvocdocument/keduvocexpression.cpp @@ -118,7 +118,10 @@ void KEduVocExpression::setTranslation( int index, const QString & expr ) return; } - d->m_translations[index] = new KEduVocTranslation(this, expr.simplified()); + if (!d->m_translations.contains(index)) { + d->m_translations[index] = new KEduVocTranslation(this); + } + d->m_translations[index]->setText(expr.simplified()); }