[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/config
From: Bernhard Loos <nhuh.put () web ! de>
Date: 2007-10-06 21:18:52
Message-ID: 1191705532.614736.9690.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 722192 by bloos:
return an empty list instead of a list containing an empty string for empty config entries
I missed one place with the last fix
M +1 -1 kconfiggroup.cpp
--- trunk/KDE/kdelibs/kdecore/config/kconfiggroup.cpp #722191:722192
@@ -476,7 +476,7 @@
return QString::fromUtf8(value);
case QVariant::List:
case QVariant::StringList:
- return QString::fromUtf8(value).split(QLatin1Char(','));
+ return value.isEmpty() ? QStringList() : QString::fromUtf8(value).split(QLatin1Char(','));
case QVariant::ByteArray:
return value;
case QVariant::Bool: {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic