allow null values for dataengines as sugested by aseigo.
BUG:237760 svn path=/trunk/KDE/kdelibs/; revision=1128225
This commit is contained in:
parent
404241f348
commit
be9c4e9781
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user