Try to fix clip corruption on drag to track

parent e7b1c113
......@@ -143,10 +143,10 @@ Rectangle {
}
function imagePath(time) {
console.log('get clip thumb for sercvie: ', mltService)
if (isAudio || mltService === 'color' || mltService === '') {
return ''
} else {
console.log('get clip thumb for service: ', mltService)
return 'image://thumbnail/' + binId + '/' + mltService + '/' + clipResource + '#' + time
}
}
......
......@@ -256,7 +256,7 @@ Column{
onClicked: {
console.log("Clip clicked",clip.clipId)
trackRoot.clipClicked(clip, trackRoot, shiftClick);
trackRoot.clipClicked(clip, clip.parentTrack, shiftClick);
clip.draggedX = clip.x
}
onMoved: { //called when the movement is finished
......
......@@ -875,8 +875,8 @@ Rectangle {
trackId: item
selection: timeline.selection
onClipClicked: {
root.currentTrack = index
timeline.activeTrack = tracksRepeater.itemAt(index).trackId
root.currentTrack = track.DelegateModel.itemsIndex
timeline.activeTrack = track.trackId
if (shiftClick === 1) {
timeline.addSelection(clip.clipId)
} else {
......@@ -919,8 +919,6 @@ Rectangle {
currentTrack = activeTrack;
timeline.activeTrack = track.trackId
clip.reparent(track)
clip.trackIndex = track.DelegateModel.itemsIndex
clip.trackId = track.trackId
} else {
if (track.trackId != clip.trackId) {
// check if we can move on existing track
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment