Skip to content

Commit

Permalink
BindingExtension: Fix bindings not cleared if new object is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Waqar144 committed Dec 27, 2023
1 parent 6d01341 commit 100606b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/tools/objectinspector/bindingextension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 100606b

Please sign in to comment.