allow null values for dataengines as sugested by aseigo.

BUG:237760

svn path=/trunk/KDE/kdelibs/; revision=1128225
This commit is contained in:
Beat Wolf 2010-05-18 18:22:13 +00:00
parent 404241f348
commit be9c4e9781

View File

@ -47,7 +47,7 @@ const DataEngine::Data DataContainer::data() const
void DataContainer::setData(const QString &key, const QVariant &value) void DataContainer::setData(const QString &key, const QVariant &value)
{ {
if (value.isNull() || !value.isValid()) { if (!value.isValid()) {
d->data.remove(key); d->data.remove(key);
} else { } else {
d->data[key] = value; d->data[key] = value;