-rw-r--r-- | microkde/kconfig.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index 5b685d3..862166d 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -107,5 +107,5 @@ QString KConfig::readEntry( const QString &key, const QString &def ) } - return *it; + return QString::fromUtf8((*it).latin1()); } @@ -136,5 +136,5 @@ QStringList KConfig::readListEntry( const QString &key ) return QStringList(); } - return QStringList::split(":", *it ); + return QStringList::split(":", QString::fromUtf8((*it).latin1())); } @@ -214,5 +214,5 @@ void KConfig::writeEntry( const QString & key , int num ) void KConfig::writeEntry( const QString &key, const QString &value ) { - mStringMap.insert( mGroup + key, value ); + mStringMap.insert( mGroup + key, value.utf8() ); mDirty = true; @@ -221,5 +221,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(":") ); + mStringMap.insert( mGroup + key, value.join(":").utf8() ); mDirty = true; |