Fix crash clicking in timeline after item deletion

parent a12dc806
......@@ -1276,6 +1276,9 @@ Rectangle {
onFrameFormatChanged: ruler.adjustFormat()
onSelectionChanged: {
//cornerstone.selected = timeline.isMultitrackSelected()
if (dragProxy.draggedItem > -1 && timeline.selection.indexOf(dragProxy.draggedItem) == -1) {
endDrag()
}
var selectedTrack = timeline.selectedTrack()
for (var i = 0; i < trackHeaderRepeater.count; i++) {
trackHeaderRepeater.itemAt(i).selected = (i === selectedTrack)
......
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