Fix disable clip broken regression.

Fixes #239
parent 5dc6935a
......@@ -560,6 +560,8 @@ Fun ClipModel::setClipState_lambda(PlaylistState::ClipState state)
return [this, state]() {
if (auto ptr = m_parent.lock()) {
m_currentState = state;
// Enforce producer reload
m_lastTrackId = -1;
if (m_currentTrackId != -1 && ptr->isClip(m_id)) { // if this is false, the clip is being created. Don't update model in that case
refreshProducerFromBin(m_currentState);
QModelIndex ix = ptr->makeClipIndexFromID(m_id);
......
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