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

Fix ungrouping when we have a selection of groups and single clips

parent f9d31a61
Pipeline #3595 passed with stage
in 16 minutes and 23 seconds
......@@ -1852,7 +1852,9 @@ bool TimelineModel::requestClipsUngroup(const std::unordered_set<int> &itemIds,
std::unordered_set<int> roots;
std::transform(itemIds.begin(), itemIds.end(), std::inserter(roots, roots.begin()), [&](int id) { return m_groups->getRootId(id); });
for (int root : roots) {
result = result && requestClipUngroup(root, undo, redo);
if (isGroup(root)) {
result = result && requestClipUngroup(root, undo, redo);
}
}
if (!result) {
bool undone = undo();
......
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