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

Fix effect zone for bin clips

parent f015fd43
......@@ -1053,7 +1053,7 @@ void Core::setWidgetKeyBinding(const QString &mess)
void Core::showEffectZone(ObjectId id, QPair <int, int>inOut, bool checked)
{
if (m_guiConstructed && m_mainWindow->getCurrentTimeline()->controller()) {
if (m_guiConstructed && m_mainWindow->getCurrentTimeline()->controller() && id.first != ObjectType::BinClip) {
m_mainWindow->getCurrentTimeline()->controller()->showRulerEffectZone(inOut, checked);
}
}
......
......@@ -152,11 +152,19 @@ CollapsibleEffectView::CollapsibleEffectView(const std::shared_ptr<EffectItemMod
layZone->addWidget(m_outPos);
connect(setIn, &QToolButton::clicked, this, [=]() {
m_inPos->setValue(pCore->getTimelinePosition());
if (m_model->getOwnerId().first == ObjectType::BinClip) {
m_outPos->setValue(pCore->getMonitor(Kdenlive::ClipMonitor)->position());
} else {
m_inPos->setValue(pCore->getTimelinePosition());
}
updateEffectZone();
});
connect(setOut, &QToolButton::clicked, this, [=]() {
m_outPos->setValue(pCore->getTimelinePosition());
if (m_model->getOwnerId().first == ObjectType::BinClip) {
m_outPos->setValue(pCore->getMonitor(Kdenlive::ClipMonitor)->position());
} else {
m_outPos->setValue(pCore->getTimelinePosition());
}
updateEffectZone();
});
......
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