summaryrefslogtreecommitdiffabout
path: root/microkde/kconfig.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r--microkde/kconfig.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp
index e0b6e99..821e386 100644
--- a/microkde/kconfig.cpp
+++ b/microkde/kconfig.cpp
@@ -67,3 +67,3 @@ QValueList<int> KConfig::readIntListEntry( const QString & key)
- QStringList valuesAsStrings = QStringList::split(":", *mit );
+ QStringList valuesAsStrings = QStringList::split(":@:", *mit );
bool ok = false;
@@ -137,3 +137,6 @@ QStringList KConfig::readListEntry( const QString &key )
}
+ QStringList temp = QStringList::split(":@:", QString::fromUtf8((*it).latin1()));
+ if ( temp.count() == 1 )
return QStringList::split(":", QString::fromUtf8((*it).latin1()));
+ return temp;
@@ -222,3 +225,3 @@ void KConfig::writeEntry( const QString &key, const QStringList &value )
{
- mStringMap.insert( mGroup + key, value.join(":").utf8() );
+ mStringMap.insert( mGroup + key, value.join(":@:").utf8() );