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

Fix composition unselected on move

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