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
89d6efe4
Commit
89d6efe4
authored
Aug 28, 2020
by
Jean-Baptiste Mardelle
Browse files
Fix audio only insert broken
Fixes
#786
parent
6289435a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
89d6efe4
...
...
@@ -1154,7 +1154,6 @@ bool TimelineModel::requestClipInsertion(const QString &binClipId, int trackId,
res
=
requestClipCreation
(
binIdWithInOut
,
id
,
getTrackById_const
(
trackId
)
->
trackType
(),
audioDrop
?
audioStream
:
-
1
,
1.0
,
false
,
local_undo
,
local_redo
);
res
=
res
&&
requestClipMove
(
id
,
trackId
,
position
,
true
,
refreshView
,
logUndo
,
logUndo
,
local_undo
,
local_redo
);
qDebug
()
<<
"==== INSERTED FIRST AUDIO STREAM: "
<<
audioStream
<<
", ON TK: "
<<
trackId
<<
"
\n
-----"
;
QList
<
int
>
target_track
;
if
(
audioDrop
)
{
if
(
m_videoTarget
>
-
1
&&
!
getTrackById_const
(
m_videoTarget
)
->
isLocked
()
&&
dropType
!=
PlaylistState
::
AudioOnly
)
{
...
...
@@ -1162,6 +1161,7 @@ bool TimelineModel::requestClipInsertion(const QString &binClipId, int trackId,
}
}
else
if
(
useTargets
)
{
QList
<
int
>
targetIds
=
m_audioTarget
.
keys
();
targetIds
.
removeAll
(
trackId
);
for
(
int
&
ix
:
targetIds
)
{
if
(
!
getTrackById_const
(
ix
)
->
isLocked
()
&&
allowedTracks
.
contains
(
ix
))
{
target_track
<<
ix
;
...
...
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