Skip to content
GitLab
Menu
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
e0ccc89e
Commit
e0ccc89e
authored
Jul 12, 2020
by
Jean-Baptiste Mardelle
Browse files
In insert mode, deleting a clip should perform an extract operation.
Related to
#673
parent
23e56b75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/timelinecontroller.cpp
View file @
e0ccc89e
...
...
@@ -468,7 +468,13 @@ void TimelineController::deleteSelectedClips()
return
;
}
// only need to delete the first item, the others will be deleted in cascade
m_model
->
requestItemDeletion
(
*
sel
.
begin
());
if
(
m_model
->
m_editMode
==
TimelineMode
::
InsertEdit
)
{
// In insert mode, perform an extract operation (don't leave gaps)
extract
(
*
sel
.
begin
());
}
else
{
m_model
->
requestItemDeletion
(
*
sel
.
begin
());
}
}
int
TimelineController
::
getMainSelectedItem
(
bool
restrictToCurrentPos
,
bool
allowComposition
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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