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

After undoing deletion, item should not show up as selected

parent c9d917a4
Pipeline #4147 passed with stage
in 17 minutes and 25 seconds
...@@ -86,6 +86,9 @@ template <typename Service> void MoveableItem<Service>::setCurrentTrackId(int ti ...@@ -86,6 +86,9 @@ template <typename Service> void MoveableItem<Service>::setCurrentTrackId(int ti
Q_UNUSED(finalMove); Q_UNUSED(finalMove);
QWriteLocker locker(&m_lock); QWriteLocker locker(&m_lock);
m_currentTrackId = tid; m_currentTrackId = tid;
if (tid == -1) {
selected = false;
}
} }
template <typename Service> void MoveableItem<Service>::setInOut(int in, int out) template <typename Service> void MoveableItem<Service>::setInOut(int in, int out)
......
...@@ -169,7 +169,6 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel> ...@@ -169,7 +169,6 @@ bool TimelineFunctions::requestClipCut(const std::shared_ptr<TimelineItemModel>
clips.insert(cid); clips.insert(cid);
} }
} }
timeline->requestClearSelection();
std::unordered_set<int> topElements; std::unordered_set<int> topElements;
std::transform(clips.begin(), clips.end(), std::inserter(topElements, topElements.begin()), [&](int id) { return timeline->m_groups->getRootId(id); }); std::transform(clips.begin(), clips.end(), std::inserter(topElements, topElements.begin()), [&](int id) { return timeline->m_groups->getRootId(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