-rw-r--r-- | microkde/kconfig.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index e0b6e99..821e386 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -66,5 +66,5 @@ QValueList<int> KConfig::readIntListEntry( const QString & key) } - QStringList valuesAsStrings = QStringList::split(":", *mit ); + QStringList valuesAsStrings = QStringList::split(":@:", *mit ); bool ok = false; bool ok2 = true; @@ -136,5 +136,8 @@ QStringList KConfig::readListEntry( const QString &key ) 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; } @@ -221,5 +224,5 @@ 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; |