diff --git a/core/tools/objectinspector/bindingextension.cpp b/core/tools/objectinspector/bindingextension.cpp index dc53b99de5..408bce7d9e 100644 --- a/core/tools/objectinspector/bindingextension.cpp +++ b/core/tools/objectinspector/bindingextension.cpp @@ -73,6 +73,8 @@ bool BindingExtension::setQObject(QObject *object) } } connect(object, &QObject::destroyed, this, &BindingExtension::clear); + } else { + m_bindings.clear(); } m_bindingModel->setObject(object, m_bindings);