while ((child = m_view.headers_container->layout()->takeAt(0)) != 0) {
QWidget *wid = child->widget();
delete child;
- if (wid) delete wid;
+ if (wid) wid->deleteLater();
}
int max = list.count();
int height = KdenliveSettings::trackheight() * m_scene->scale().y() - 1;
// prepend MLT XML document root if no path in clip resource and not a color clip
if (!resource.startsWith('/') && !resource.startsWith("0x")) resource.prepend(docRoot);
DocClipBase *missingClip = NULL;
- if (!resource.isEmpty())
- missingClip = m_doc->clipManager()->getClipByResource(resource);
+ if (!resource.isEmpty()) {
+ QList <DocClipBase *> list = m_doc->clipManager()->getClipByResource(resource);
+ if (!list.isEmpty()) missingClip = list.at(0);
+ }
return missingClip;
}
void TrackView::updateProjectFps()
{
m_ruler->updateProjectFps(m_doc->timecode());
+ m_trackview->updateProjectFps();
}
void TrackView::slotRenameTrack(int ix)