Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
4087ed12
Commit
4087ed12
authored
May 31, 2020
by
Jean-Baptiste Mardelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible crash dragging clip to timeline if video track had no mirror
parent
f9bfcc57
Pipeline
#21956
passed with stage
in 16 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/timeline2/model/timelinemodel.cpp
src/timeline2/model/timelinemodel.cpp
+4
-1
No files found.
src/timeline2/model/timelinemodel.cpp
View file @
4087ed12
...
...
@@ -1118,7 +1118,10 @@ bool TimelineModel::requestClipInsertion(const QString &binClipId, int trackId,
}
else
{
// Dropping video, ensure we have enough audio tracks for its streams
int
mirror
=
getMirrorTrackId
(
trackId
);
QList
<
int
>
audioTids
=
getLowerTracksId
(
mirror
,
TrackType
::
AudioTrack
);
QList
<
int
>
audioTids
=
{};
if
(
mirror
>
-
1
)
{
audioTids
=
getLowerTracksId
(
mirror
,
TrackType
::
AudioTrack
);
}
if
(
audioTids
.
count
()
<
keys
.
count
()
-
1
)
{
// Check if project has enough audio tracks
if
(
keys
.
count
()
>
getTracksIds
(
true
).
count
())
{
...
...
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