-rw-r--r-- | microkde/kconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index 862166d..b9cf2f1 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp @@ -149,17 +149,17 @@ bool KConfig::readBoolEntry( const QString &key, bool def ) return *it; } QColor KConfig::readColorEntry( const QString & e, QColor *def ) { QStringList l; - l = readListEntry( e ); + l = readListEntry( e.utf8() ); if (l.count() != 3 ) { if ( def ) return *def; else return QColor(); } QColor c ( l[0].toInt(), l[1].toInt(), l[2].toInt() ); return c; @@ -233,17 +233,17 @@ void KConfig::writeEntry( const QString &key, bool value) } void KConfig::writeEntry( const QString & e, const QColor & c ) { QStringList l; l.append( QString::number ( c.red() ) ); l.append( QString::number ( c.green() ) ); l.append( QString::number ( c.blue() ) ); - writeEntry( e, l ); + writeEntry( e.utf8(), l ); } void KConfig::writeEntry( const QString & e, const QSize & s ) { QValueList<int> intlist; intlist << s.width() << s.height(); writeEntry( e, intlist ); } |