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

Fix snapping not updated when track is made active/inactive

Fixes #852
parent ba457245
...@@ -2571,6 +2571,7 @@ void TimelineController::switchTrackActive(int trackId) ...@@ -2571,6 +2571,7 @@ void TimelineController::switchTrackActive(int trackId)
} }
bool active = m_model->getTrackById_const(trackId)->isTimelineActive(); bool active = m_model->getTrackById_const(trackId)->isTimelineActive();
m_model->setTrackProperty(trackId, QStringLiteral("kdenlive:timeline_active"), active ? QStringLiteral("0") : QStringLiteral("1")); m_model->setTrackProperty(trackId, QStringLiteral("kdenlive:timeline_active"), active ? QStringLiteral("0") : QStringLiteral("1"));
m_activeSnaps.clear();
} }
void TimelineController::switchAllTrackActive() void TimelineController::switchAllTrackActive()
...@@ -2582,6 +2583,7 @@ void TimelineController::switchAllTrackActive() ...@@ -2582,6 +2583,7 @@ void TimelineController::switchAllTrackActive()
m_model->setTrackProperty(target_track, QStringLiteral("kdenlive:timeline_active"), active ? QStringLiteral("0") : QStringLiteral("1")); m_model->setTrackProperty(target_track, QStringLiteral("kdenlive:timeline_active"), active ? QStringLiteral("0") : QStringLiteral("1"));
++it; ++it;
} }
m_activeSnaps.clear();
} }
void TimelineController::makeAllTrackActive() void TimelineController::makeAllTrackActive()
...@@ -2603,6 +2605,7 @@ void TimelineController::makeAllTrackActive() ...@@ -2603,6 +2605,7 @@ void TimelineController::makeAllTrackActive()
m_model->setTrackProperty(target_track, QStringLiteral("kdenlive:timeline_active"), makeActive ? QStringLiteral("1") : QStringLiteral("0")); m_model->setTrackProperty(target_track, QStringLiteral("kdenlive:timeline_active"), makeActive ? QStringLiteral("1") : QStringLiteral("0"));
++it; ++it;
} }
m_activeSnaps.clear();
} }
void TimelineController::switchTrackLock(bool applyToAll) void TimelineController::switchTrackLock(bool applyToAll)
......
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