]> Git trees. - libqmvoc.git/commitdiff
Fix reading of some kde3 kvtml1 docs.
authorFrederik Gladhorn <gladhorn@kde.org>
Sun, 23 Mar 2008 14:58:58 +0000 (14:58 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sun, 23 Mar 2008 14:58:58 +0000 (14:58 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=789195

keduvocdocument/keduvockvtmlreader.cpp

index ae86547fcb89c324872ff1b1313f42628f52b6eb..82f5b58b91b05e550e229798f0b2230223b20e6b 100644 (file)
@@ -964,13 +964,6 @@ bool KEduVocKvtmlReader::readExpression( QDomElement &domElementParent )
         }
 
 
-        if ( m_doc->lesson()->entries(KEduVocLesson::Recursive).count() == 0 ) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY.
-
-            // new translation
-            if (!addLanguage(i, lang)) {
-                return false;
-            }
-        }
         //---------
         // Children
 
@@ -988,6 +981,13 @@ bool KEduVocKvtmlReader::readExpression( QDomElement &domElementParent )
             entry->setTranslation( i, textstr );
         }
 
+        if ( m_doc->lesson()->entries(KEduVocLesson::Recursive).count() == 1 ) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY.
+            // new translation
+            if (!addLanguage(i, lang)) {
+                return false;
+            }
+        }
+
         // better make sure, translation(i) already exists...
         currentChild = currentElement.firstChildElement( KV_CONJUG_GRP );
         if ( !currentChild.isNull() ) {