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
2e577702
Commit
2e577702
authored
May 29, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix cannot paste clip from project containing more tracks
parent
7c33f400
Pipeline
#21600
passed with stage
in 14 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinefunctions.cpp
View file @
2e577702
...
...
@@ -1357,7 +1357,7 @@ bool TimelineFunctions::pasteClips(const std::shared_ptr<TimelineItemModel> &tim
for
(
int
i
=
0
;
i
<
clips
.
count
();
i
++
)
{
QDomElement
prod
=
clips
.
at
(
i
).
toElement
();
int
trackPos
=
prod
.
attribute
(
QStringLiteral
(
"track"
)).
toInt
();
if
(
trackPos
<
0
||
trackPos
>=
projectTracks
.
first
.
size
()
+
projectTracks
.
second
.
size
()
)
{
if
(
trackPos
<
0
)
{
pCore
->
displayMessage
(
i18n
(
"Not enough tracks to paste clipboard"
),
InformationMessage
,
500
);
semaphore
.
release
(
1
);
return
false
;
...
...
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