Commit 7e5dabd4 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix timeline unresponsive after deleting all clips

Fixes #198
parent 43a5b6df
Pipeline #3866 passed with stage
in 14 minutes and 24 seconds
......@@ -2230,7 +2230,7 @@ void TimelineModel::updateDuration()
}
if (duration != current) {
// update black track length
m_blackClip->set_in_and_out(0, duration + TimelineModel::seekDuration);
m_blackClip->set("out", duration + TimelineModel::seekDuration);
emit durationUpdated();
}
}
......
......@@ -1096,7 +1096,6 @@ Rectangle {
drag.minimumX: 0
property int dragFrame
property bool shiftClick: false
cursorShape: pressed ? Qt.ClosedHandCursor : Qt.OpenHandCursor
enabled: root.activeTool == 0
onPressed: {
console.log('+++++++++++++++++++ DRAG CLICKED +++++++++++++')
......@@ -1473,8 +1472,7 @@ Rectangle {
onPositionChanged: if (!stopScrolling) Logic.scrollIfNeeded()
onFrameFormatChanged: ruler.adjustFormat()
onSelectionChanged: {
//cornerstone.selected = timeline.isMultitrackSelected()
if (dragProxy.draggedItem > -1 && !timeline.exists(dragProxy.draggedItem)) {
if (dragProxy.draggedItem > -1 && !timeline.exists(dragProxy.draggedItem) || timeline.selection.indexOf(dragProxy.draggedItem) == -1) {
endDrag()
}
}
......
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