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

Correctly hide/show asset settings when deselected/reselected

parent f6118f65
Pipeline #3675 passed with stage
in 14 minutes and 6 seconds
......@@ -2019,10 +2019,15 @@ void TimelineController::updateClipActions()
act->setEnabled(false);
}
emit timelineClipSelected(false);
// nothing selected
emit showItemEffectStack(QString(), nullptr, QSize(), false);
return;
}
std::shared_ptr<ClipModel> clip(nullptr);
int item = *m_model->getCurrentSelection().begin();
if (m_model->getCurrentSelection().size() == 1 && (m_model->isClip(item) || m_model->isComposition(item))) {
showAsset(item);
}
if (m_model->isClip(item)) {
clip = m_model->getClipPtr(item);
}
......
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