From 20c9e9cb71ad64aebfa27157bb152ece4e34c00a Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 02 Jul 2005 16:10:28 +0000 Subject: fixxxx --- (limited to 'microkde') diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index e0b6e99..821e386 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -65,7 +65,7 @@ QValueList KConfig::readIntListEntry( const QString & key) return result; } - QStringList valuesAsStrings = QStringList::split(":", *mit ); + QStringList valuesAsStrings = QStringList::split(":@:", *mit ); bool ok = false; bool ok2 = true; int val; @@ -135,7 +135,10 @@ QStringList KConfig::readListEntry( const QString &key ) if ( it == mStringMap.end() ) { return QStringList(); } - return QStringList::split(":", QString::fromUtf8((*it).latin1())); + QStringList temp = QStringList::split(":@:", QString::fromUtf8((*it).latin1())); + if ( temp.count() == 1 ) + return QStringList::split(":", QString::fromUtf8((*it).latin1())); + return temp; } @@ -220,7 +223,7 @@ void KConfig::writeEntry( const QString &key, const QString &value ) void KConfig::writeEntry( const QString &key, const QStringList &value ) { - mStringMap.insert( mGroup + key, value.join(":").utf8() ); + mStringMap.insert( mGroup + key, value.join(":@:").utf8() ); mDirty = true; } -- cgit v0.9.0.2