Fix unlocking track allowing group corruption

parent 8bb7b80e
......@@ -288,7 +288,9 @@ void AbstractClipItem::setItemLocked(bool locked)
if (locked)
setSelected(false);
setFlag(QGraphicsItem::ItemIsMovable, !locked);
// Allow move only if not in a group
if (locked || parentItem() == NULL)
setFlag(QGraphicsItem::ItemIsMovable, !locked);
setFlag(QGraphicsItem::ItemIsSelectable, !locked);
}
......
......@@ -5165,7 +5165,6 @@ void CustomTrackView::groupClips(bool group, QList<QGraphicsItem *> itemList, bo
}
if (command) {
// Create new group
qDebug()<<"CREATE GRP COMMAND ITEMS: "<<clipInfos<<", IDUT: "<<doIt;
new GroupClipsCommand(this, clipInfos, transitionInfos, group, doIt, command);
} else {
if (metaCommand) {
......
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