Skip to content
GitLab
Menu
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
43c287ff
Commit
43c287ff
authored
Jan 08, 2022
by
Jean-Baptiste Mardelle
Browse files
Fix bin accepting invalid clips
parent
735732bf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/jobs/cliploadtask.cpp
View file @
43c287ff
...
...
@@ -658,7 +658,7 @@ void ClipLoadTask::abort()
auto
binClip
=
pCore
->
projectItemModel
()
->
getClipByBinID
(
QString
::
number
(
m_owner
.
second
));
if
(
binClip
)
{
QMetaObject
::
invokeMethod
(
binClip
.
get
(),
"setInvalid"
,
Qt
::
QueuedConnection
);
if
(
binClip
->
isValid
()
&&
binClip
->
hash
().
isEmpty
()
)
{
if
(
!
m_isCanceled
)
{
// User tried to add an invalid clip, remove it.
pCore
->
projectItemModel
()
->
requestBinClipDeletion
(
binClip
,
undo
,
redo
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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