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
1ffc0b61
Commit
1ffc0b61
authored
Mar 12, 2020
by
Jean-Baptiste Mardelle
Browse files
Ensure audio track is inserted at correct position when no previous audio exists
parent
340c9ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/model/timelinemodel.cpp
View file @
1ffc0b61
...
...
@@ -2251,7 +2251,7 @@ bool TimelineModel::requestTrackInsertion(int position, int &id, const QString &
// TODO: make sure we disable overlayTrack before inserting a track
qDebug
()
<<
"=== REQUESTING TRACK INSERTION AT: "
<<
position
;
if
(
position
==
-
1
)
{
position
=
(
int
)(
m_allTracks
.
size
());
position
=
audioTrack
?
0
:
(
int
)(
m_allTracks
.
size
());
}
if
(
position
<
0
||
position
>
(
int
)
m_allTracks
.
size
())
{
return
false
;
...
...
Jean-Baptiste Mardelle
@mardelle
mentioned in commit
c5ae08cd
·
Mar 18, 2020
mentioned in commit
c5ae08cd
mentioned in commit c5ae08cd51a166cdcabe3501a42245bcbf91e7fc
Toggle commit list
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