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

Fix clip target tracks and properties not properly set for first clip when creating a new project

parent fe4b81b5
Pipeline #142080 passed with stage
in 5 minutes and 38 seconds
......@@ -1857,6 +1857,9 @@ void Bin::cleanDocument()
// Cleanup previous project
m_itemModel->clean();
if (m_propertiesPanel) {
m_propertiesPanel->setProperty("clipId", QString());
}
delete m_itemView;
m_itemView = nullptr;
isLoading = false;
......
......@@ -164,7 +164,6 @@ QMap<QString, QString> BinPlaylist::getProxies(const QString &root)
proxies.insert(proxy, sourceUrl);
}
}
qDebug()<<"AAAAAAAAAAAAAAAAAAAAAAA\n FOUND PROXIES IN PROJECT:"<<proxies<<"\n\nAAAAAAAAAAAAAAAAAAAAAAAAAA";
return proxies;
}
......
......@@ -1877,7 +1877,6 @@ void KdenliveDoc::useOriginals(QDomDocument &doc)
}
}
}
qDebug()<<"BBBBBBBBBBBBB\n\nDOCUMENT FOR RENDER:\n"<<doc.toString()<<"\n\nBBBBBBBBBBBBBBBBBBBBB";
}
void KdenliveDoc::cleanupTimelinePreview(const QDateTime &documentDate)
......
......@@ -99,6 +99,9 @@ void TimelineController::setModel(std::shared_ptr<TimelineItemModel> model)
{
delete m_timelinePreview;
m_zone = QPoint(-1, -1);
m_hasAudioTarget = 0;
m_lastVideoTarget = -1;
m_lastAudioTarget.clear();
m_timelinePreview = nullptr;
m_model = std::move(model);
m_activeSnaps.clear();
......
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