]> Git trees. - libqmvoc.git/commitdiff
When changing the text of a translation, only change the text, not reset all it's...
authorFrederik Gladhorn <gladhorn@kde.org>
Sat, 1 Mar 2008 10:17:57 +0000 (10:17 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sat, 1 Mar 2008 10:17:57 +0000 (10:17 +0000)
BUG: 158459

svn path=/branches/KDE/4.0/kdeedu/libkdeedu/; revision=780834

keduvocdocument/keduvocexpression.cpp
keduvocdocument/keduvoctranslation.h

index 05655558177a60999a28ca1ae72b2364243cd4df..0c6898f0f2f00f18596af56aae62433b39c313cc 100644 (file)
@@ -107,7 +107,8 @@ void KEduVocExpression::setTranslation( int index, const QString & expr )
         return;
     }
 
-    d->m_translations[index] = expr.simplified();
+    // if it exists already, only change the text, not the whole show!
+    d->m_translations[index].setText(expr.simplified());
 }
 
 
index 174e89bb38cefedb226eae8bdbae76effd0d6fbe..886da491e4b36644556401920713ae8534036dea 100644 (file)
@@ -42,7 +42,7 @@ public:
         * Constructor
         * @param translation is used as translation
         */
-    KEduVocTranslation( const QString &translation );
+    explicit KEduVocTranslation( const QString &translation );
 
     /** copy constructor for d-pointer safet */
     KEduVocTranslation( const KEduVocTranslation &other );