Commit b7626cc1 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle Committed by Vincent PINON

Fix clip monitor not working when adding a clip

parent d171e128
......@@ -1372,7 +1372,7 @@ void ProjectList::slotAddClip(DocClipBase *clip, bool getProperties)
}
}
monitorItemEditing(true);
updateButtons();
if (!getProperties) updateButtons();
}
void ProjectList::slotGotProxy(const QString &proxyPath)
......@@ -2280,9 +2280,6 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
if (item && producer) {
monitorItemEditing(false);
DocClipBase *clip = item->referencedClip();
if (clip->getProducer() == NULL && replace) {
replace = false;
}
if (producer->is_valid()) {
if (clip->isPlaceHolder()) {
clip->setValid();
......@@ -2341,8 +2338,9 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
if (queue == 0) {
monitorItemEditing(true);
if (item && m_thumbnailQueue.isEmpty()) {
if (!item->hasProxy() || m_render->activeClipId() == item->clipId())
if (!item->hasProxy() || m_render->activeClipId() == item->clipId()) {
m_listView->setCurrentItem(item);
}
bool updatedProfile = false;
if (item->parent()) {
if (item->parent()->type() == ProjectFoldeType)
......@@ -2355,7 +2353,7 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
}
}
if (updatedProfile == false) {
//emit clipSelected(item->referencedClip());
emit clipSelected(item->referencedClip());
}
} else {
int max = m_doc->clipManager()->clipsCount();
......
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