Commit 6424777e authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Don't re-insert clip multiple times if drag exits in the headers area then re-enters timeline

parent d3c039a6
Pipeline #16197 passed with stage
in 15 minutes and 56 seconds
...@@ -380,8 +380,8 @@ Rectangle { ...@@ -380,8 +380,8 @@ Rectangle {
if (clipBeingDroppedId != -1 && drag.y < drag.x) { if (clipBeingDroppedId != -1 && drag.y < drag.x) {
// If we exit on top, remove clip // If we exit on top, remove clip
controller.requestItemDeletion(clipBeingDroppedId, false) controller.requestItemDeletion(clipBeingDroppedId, false)
clearDropData()
} }
clearDropData()
} }
onDropped: { onDropped: {
if (clipBeingDroppedId != -1) { if (clipBeingDroppedId != -1) {
...@@ -457,8 +457,10 @@ Rectangle { ...@@ -457,8 +457,10 @@ Rectangle {
if (clipBeingDroppedId != -1 && drag.y < drag.x) { if (clipBeingDroppedId != -1 && drag.y < drag.x) {
// If we exit on top, remove clip // If we exit on top, remove clip
controller.requestItemDeletion(clipBeingDroppedId, false) controller.requestItemDeletion(clipBeingDroppedId, false)
clearDropData()
} else {
// Clip is dropped
} }
clearDropData()
} }
onPositionChanged: { onPositionChanged: {
if (clipBeingMovedId == -1) { if (clipBeingMovedId == -1) {
......
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