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

Ensure we never add a clip with id = 0.

Related to !324
parent 00d8e750
Pipeline #204875 passed with stage
in 6 minutes and 29 seconds
......@@ -752,7 +752,9 @@ bool ProjectItemModel::requestAddBinClip(QString &id, const std::shared_ptr<Mlt:
{
QWriteLocker locker(&m_lock);
if (id.isEmpty()) {
id = QString::number(producer->get_int("kdenlive:id"));
if (producer->property_exists("kdenlive:id")) {
id = QString::number(producer->get_int("kdenlive:id"));
}
if (!isIdFree(id)) {
id = QString::number(getFreeClipId());
}
......
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