Fix crash on add effect

parent 5fad024f
......@@ -265,6 +265,9 @@ void EffectStackView::refresh(const QModelIndex &topLeft, const QModelIndex &bot
void EffectStackView::unsetModel(bool reset)
{
// Release ownership of smart pointer
if (m_model) {
disconnect(m_model.get(), &EffectStackModel::dataChanged, this, &EffectStackView::refresh);
}
if (reset) {
m_model.reset();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment