Commit c9d917a4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix disable clip broken regression.

Fixes #239
parent 5dc6935a
...@@ -560,6 +560,8 @@ Fun ClipModel::setClipState_lambda(PlaylistState::ClipState state) ...@@ -560,6 +560,8 @@ Fun ClipModel::setClipState_lambda(PlaylistState::ClipState state)
return [this, state]() { return [this, state]() {
if (auto ptr = m_parent.lock()) { if (auto ptr = m_parent.lock()) {
m_currentState = state; 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 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); refreshProducerFromBin(m_currentState);
QModelIndex ix = ptr->makeClipIndexFromID(m_id); 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