listView->blockSignals(false);
}
+void ProjectList::slotResetProjectList() {
+ listView->clear();
+ emit clipSelected(NULL);
+ m_thumbnailQueue.clear();
+ m_infoQueue.clear();
+ m_refreshed = false;
+}
+
void ProjectList::requestClipInfo(const QDomElement xml, const QString id) {
kDebug() << " PRG LISTÂ REQUEST CLP INFO: " << id;
m_infoQueue.insert(id, xml);
m_doc->deleteProjectClip(ids);
}
if (!m_infoQueue.isEmpty()) QTimer::singleShot(300, this, SLOT(slotProcessNextClipInQueue()));
+ else listView->setEnabled(true);
}
void ProjectList::slotAddColorClip() {
void ProjectList::setDocument(KdenliveDoc *doc) {
listView->blockSignals(true);
listView->clear();
+ emit clipSelected(NULL);
m_thumbnailQueue.clear();
m_infoQueue.clear();
m_refreshed = false;
if (item && producer) {
listView->blockSignals(true);
item->setProperties(properties, metadata);
- Q_ASSERT_X( item->referencedClip(), "void ProjectList::slotReplyGetFileProperties", QString( "Item with groupName %1 does not have a clip associated" ).arg( item->groupName() ).toLatin1() );
+ Q_ASSERT_X(item->referencedClip(), "void ProjectList::slotReplyGetFileProperties", QString("Item with groupName %1 does not have a clip associated").arg(item->groupName()).toLatin1());
item->referencedClip()->setProducer(producer);
emit receivedClipDuration(clipId, item->clipMaxDuration());
listView->blockSignals(false);