Fix composition unselected on move

Fixes #865
parent 177a8974
......@@ -1271,10 +1271,7 @@ bool TrackModel::requestCompositionDeletion(int compoId, bool updateView, bool f
int old_position = old_composition->getPosition();
Q_ASSERT(m_compoPos.count(old_position) > 0);
Q_ASSERT(m_compoPos[old_position] == compoId);
if (finalDeletion) {
m_allCompositions[compoId]->selected = false;
}
auto operation = requestCompositionDeletion_lambda(compoId, updateView, finalMove);
auto operation = requestCompositionDeletion_lambda(compoId, updateView, finalMove && finalDeletion);
if (operation()) {
auto reverse = requestCompositionInsertion_lambda(compoId, old_position, updateView, finalMove);
UPDATE_UNDO_REDO(operation, reverse, 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