Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
c8739be2
Commit
c8739be2
authored
Dec 08, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix composition unselected on move
Fixes
#865
parent
177a8974
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/trackmodel.cpp
View file @
c8739be2
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment