From: Peter Hedlund Date: Thu, 30 Aug 2007 18:07:49 +0000 (+0000) Subject: I hope I still know what I'm doing around here. Load the column title correctly in... X-Git-Tag: v3.94.0~112 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=000375572578036ffaa7440cbf8fa7847e91e023;p=libqmvoc.git 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 --- 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; } }