Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix spacer tool not working if a track is locked

parent 4cbfb78c
Pipeline #1508 passed with stage
in 14 minutes and 40 seconds
......@@ -647,6 +647,7 @@ int TimelineModel::suggestItemMove(int itemId, int trackId, int position, int cu
int TimelineModel::suggestClipMove(int clipId, int trackId, int position, int cursorPosition, int snapDistance, bool allowViewUpdate)
{
Q_UNUSED(allowViewUpdate);
QWriteLocker locker(&m_lock);
Q_ASSERT(isClip(clipId));
Q_ASSERT(isTrack(trackId));
......@@ -1108,6 +1109,9 @@ std::unordered_set<int> TimelineModel::getItemsInRange(int trackId, int start, i
std::unordered_set<int> allClips;
if (trackId == -1) {
for (const auto &track : m_allTracks) {
if (track->isLocked()) {
continue;
}
std::unordered_set<int> clipTracks = getItemsInRange(track->getId(), start, end, listCompositions);
allClips.insert(clipTracks.begin(), clipTracks.end());
}
......
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