minor cleanup of qml's selected id management

parent 67dcdfb4
Pipeline #14046 passed with stage
in 17 minutes and 31 seconds
......@@ -244,11 +244,11 @@ Rectangle {
cursorShape: (trimInMouseArea.drag.active || trimOutMouseArea.drag.active)? Qt.SizeHorCursor : dragProxyArea.cursorShape
onPressed: {
root.autoScrolling = false
root.mainItemId = clipRoot.clipId
if (mouse.button == Qt.RightButton) {
if (timeline.selection.indexOf(clipRoot.clipId) == -1) {
controller.requestAddToSelection(clipRoot.clipId, true)
}
root.mainItemId = clipRoot.clipId
root.clipFrame = Math.round(mouse.x / timeline.scaleFactor)
root.showClipMenu()
}
......
......@@ -50,6 +50,9 @@ Rectangle {
if (dragProxy.draggedItem == itemId) {
endDrag()
}
if (itemId == mainItemId) {
mainItemId = -1
}
}
function updatePalette() {
......
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