summaryrefslogtreecommitdiffabout
path: root/microkde
Unidiff
Diffstat (limited to 'microkde') (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
@@ -65,7 +65,7 @@ QValueList<int> KConfig::readIntListEntry( const QString & key)
65 return result; 65 return result;
66 } 66 }
67 67
68 QStringList valuesAsStrings = QStringList::split(":", *mit ); 68 QStringList valuesAsStrings = QStringList::split(":@:", *mit );
69 bool ok = false; 69 bool ok = false;
70 bool ok2 = true; 70 bool ok2 = true;
71 int val; 71 int val;
@@ -135,7 +135,10 @@ QStringList KConfig::readListEntry( const QString &key )
135 if ( it == mStringMap.end() ) { 135 if ( it == mStringMap.end() ) {
136 return QStringList(); 136 return QStringList();
137 } 137 }
138 QStringList temp = QStringList::split(":@:", QString::fromUtf8((*it).latin1()));
139 if ( temp.count() == 1 )
138 return QStringList::split(":", QString::fromUtf8((*it).latin1())); 140 return QStringList::split(":", QString::fromUtf8((*it).latin1()));
141 return temp;
139 142
140} 143}
141 144
@@ -220,7 +223,7 @@ void KConfig::writeEntry( const QString &key, const QString &value )
220 223
221void KConfig::writeEntry( const QString &key, const QStringList &value ) 224void KConfig::writeEntry( const QString &key, const QStringList &value )
222{ 225{
223 mStringMap.insert( mGroup + key, value.join(":").utf8() ); 226 mStringMap.insert( mGroup + key, value.join(":@:").utf8() );
224 227
225 mDirty = true; 228 mDirty = true;
226} 229}