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
74a16575
Commit
74a16575
authored
Mar 03, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix duplicate multiple clips only duplicating first item
BUG: 418379
parent
a96aa3f0
Pipeline
#15952
passed with stage
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
74a16575
...
...
@@ -1491,11 +1491,14 @@ void Bin::slotLocateClip()
void
Bin
::
slotDuplicateClip
()
{
const
QModelIndexList
indexes
=
m_proxyModel
->
selectionModel
()
->
selectedIndexes
();
QList
<
std
::
shared_ptr
<
AbstractProjectItem
>
>
items
;
for
(
const
QModelIndex
&
ix
:
indexes
)
{
if
(
!
ix
.
isValid
()
||
ix
.
column
()
!=
0
)
{
continue
;
}
std
::
shared_ptr
<
AbstractProjectItem
>
item
=
m_itemModel
->
getBinItemByIndex
(
m_proxyModel
->
mapToSource
(
ix
));
items
<<
m_itemModel
->
getBinItemByIndex
(
m_proxyModel
->
mapToSource
(
ix
));
}
for
(
auto
item
:
items
)
{
if
(
item
->
itemType
()
==
AbstractProjectItem
::
ClipItem
)
{
auto
currentItem
=
std
::
static_pointer_cast
<
ProjectClip
>
(
item
);
if
(
currentItem
)
{
...
...
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