diff options
-rw-r--r-- | src/corelib/kernel/qproperty.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h index bb89dbf94f..4013b8c92b 100644 --- a/src/corelib/kernel/qproperty.h +++ b/src/corelib/kernel/qproperty.h @@ -407,7 +407,7 @@ public: bool setBinding(const QUntypedPropertyBinding &newBinding) { - if (newBinding.valueMetaType().id() != qMetaTypeId<T>()) + if (!newBinding.isNull() && newBinding.valueMetaType().id() != qMetaTypeId<T>()) return false; setBinding(static_cast<const QPropertyBinding<T> &>(newBinding)); return true; |