Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
6424777e
Commit
6424777e
authored
Mar 09, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/timeline.qml
View file @
6424777e
...
...
@@ -380,8 +380,8 @@ Rectangle {
if
(
clipBeingDroppedId
!=
-
1
&&
drag
.
y
<
drag
.
x
)
{
// If we exit on top, remove clip
controller
.
requestItemDeletion
(
clipBeingDroppedId
,
false
)
clearDropData
()
}
clearDropData
()
}
onDropped
:
{
if
(
clipBeingDroppedId
!=
-
1
)
{
...
...
@@ -457,8 +457,10 @@ Rectangle {
if
(
clipBeingDroppedId
!=
-
1
&&
drag
.
y
<
drag
.
x
)
{
// If we exit on top, remove clip
controller
.
requestItemDeletion
(
clipBeingDroppedId
,
false
)
clearDropData
()
}
else
{
// Clip is dropped
}
clearDropData
()
}
onPositionChanged
:
{
if
(
clipBeingMovedId
==
-
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment