Commit 43c287ff authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix bin accepting invalid clips

parent 735732bf
......@@ -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 {
Supports Markdown
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