]> Git trees. - libqmvoc.git/commitdiff
port 780834 to trunk - When changing the text of a translation, only change the text...
authorFrederik Gladhorn <gladhorn@kde.org>
Sat, 1 Mar 2008 10:27:06 +0000 (10:27 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sat, 1 Mar 2008 10:27:06 +0000 (10:27 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=780836

keduvocdocument/keduvocexpression.cpp

index e21395ec80beeb9cc064d07557dc2080d6449281..35cf69252e71c444c3c98b9cde9b7e1c4d4de5b5 100644 (file)
@@ -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());
 }