From 000375572578036ffaa7440cbf8fa7847e91e023 Mon Sep 17 00:00:00 2001 From: Peter Hedlund Date: Thu, 30 Aug 2007 18:07:49 +0000 Subject: [PATCH] I hope I still know what I'm doing around here. Load the column title correctly in old kvtml format. svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=706537 --- keduvocdocument/keduvockvtmlreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keduvocdocument/keduvockvtmlreader.cpp b/keduvocdocument/keduvockvtmlreader.cpp index 38bcb47..6a79ac5 100644 --- a/keduvocdocument/keduvockvtmlreader.cpp +++ b/keduvocdocument/keduvockvtmlreader.cpp @@ -1043,11 +1043,11 @@ bool KEduVocKvtmlReader::readExpression( QDomElement &domElementParent ) q_trans = lang; } -//kDebug() << " TranslationList.count(): " << translationList.count() << " Entry count: " << m_doc->entryCount(); + if ( m_doc->entryCount() == 0 ) { // this is because in kvtml the languages are saved in the FIRST ENTRY ONLY. -//kDebug() << " Read Expression with identifiers: " << lang; + // new translation - if (!addLanguage(i, attribute.value())) { + if (!addLanguage(i, lang)) { return false; } } -- 2.47.3