From be9c4e97812ab2f6942eb52b97bd36106d63a99a Mon Sep 17 00:00:00 2001 From: Beat Wolf Date: Tue, 18 May 2010 18:22:13 +0000 Subject: [PATCH] allow null values for dataengines as sugested by aseigo. BUG:237760 svn path=/trunk/KDE/kdelibs/; revision=1128225 --- datacontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacontainer.cpp b/datacontainer.cpp index 504923fbe..ca489edc4 100644 --- a/datacontainer.cpp +++ b/datacontainer.cpp @@ -47,7 +47,7 @@ const DataEngine::Data DataContainer::data() const void DataContainer::setData(const QString &key, const QVariant &value) { - if (value.isNull() || !value.isValid()) { + if (!value.isValid()) { d->data.remove(key); } else { d->data[key] = value;