author | zautrix <zautrix> | 2005-07-02 16:10:28 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-02 16:10:28 (UTC) |
commit | 20c9e9cb71ad64aebfa27157bb152ece4e34c00a (patch) (unidiff) | |
tree | 6ecd2ce2136875d974d5d361f611b39f5ad86a00 | |
parent | 7b7c582bbb9908ec65c778b70baa6b2c2aa457fc (diff) | |
download | kdepimpi-20c9e9cb71ad64aebfa27157bb152ece4e34c00a.zip kdepimpi-20c9e9cb71ad64aebfa27157bb152ece4e34c00a.tar.gz kdepimpi-20c9e9cb71ad64aebfa27157bb152ece4e34c00a.tar.bz2 |
fixxxx
-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) | |||
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; |
@@ -136,5 +136,8 @@ QStringList KConfig::readListEntry( const QString &key ) | |||
136 | return QStringList(); | 136 | return QStringList(); |
137 | } | 137 | } |
138 | return QStringList::split(":", QString::fromUtf8((*it).latin1())); | 138 | QStringList temp = QStringList::split(":@:", QString::fromUtf8((*it).latin1())); |
139 | if ( temp.count() == 1 ) | ||
140 | return QStringList::split(":", QString::fromUtf8((*it).latin1())); | ||
141 | return temp; | ||
139 | 142 | ||
140 | } | 143 | } |
@@ -221,5 +224,5 @@ void KConfig::writeEntry( const QString &key, const QString &value ) | |||
221 | void KConfig::writeEntry( const QString &key, const QStringList &value ) | 224 | void 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; |