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 crash when changing composition type of a grouped composition

parent 4a22be2c
......@@ -3563,6 +3563,13 @@ void TimelineModel::switchComposition(int cid, const QString &compoId)
int forcedTrack = compo->getForcedTrack();
Fun undo = []() { return true; };
Fun redo = []() { return true; };
// Clear selection
requestClearSelection(true);
if (m_groups->isInGroup(cid)) {
pCore->displayMessage(i18n("Cannot operate on grouped composition, please ungroup"), ErrorMessage);
return;
}
bool res = requestCompositionDeletion(cid, undo, redo);
int newId;
res = res && requestCompositionInsertion(compoId, currentTrack, a_track, currentPos, duration, nullptr, newId, undo, redo);
......
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