Fix crash when searching for missing clips, correctly look for missing playlists and clear effectstack when transition is unselected

This commit is contained in:
Jean-Baptiste Mardelle
2016-12-05 08:32:30 +01:00
parent b753b3cfb5
commit d7e2372daa
2 changed files with 6 additions and 3 deletions

View File

@@ -124,7 +124,7 @@ bool DocumentChecker::hasErrorInClips()
max = documentProducers.count();
QStringList verifiedPaths;
QStringList serviceToCheck;
serviceToCheck << QStringLiteral("kdenlivetitle") << QStringLiteral("qimage") << QStringLiteral("pixbuf") << QStringLiteral("timewarp") << QStringLiteral("framebuffer");
serviceToCheck << QStringLiteral("kdenlivetitle") << QStringLiteral("qimage") << QStringLiteral("pixbuf") << QStringLiteral("timewarp") << QStringLiteral("framebuffer") << QStringLiteral("xml");
for (int i = 0; i < max; ++i) {
e = documentProducers.item(i).toElement();
QString service = EffectsList::property(e, QStringLiteral("mlt_service"));
@@ -523,7 +523,7 @@ void DocumentChecker::slotSearchClips()
int ix = 0;
bool fixed = false;
m_ui.recursiveSearch->setChecked(true);
qApp->processEvents();
//TODO: make non modal
QTreeWidgetItem *child = m_ui.treeWidget->topLevelItem(ix);
QDir searchDir(newpath);
while (child) {

View File

@@ -7676,7 +7676,10 @@ void CustomTrackView::clearSelection(bool emitInfo)
scene()->clearSelection();
if (m_dragItem) m_dragItem->setMainSelectedClip(false);
m_dragItem = NULL;
if (emitInfo) emit clipItemSelected(NULL);
if (emitInfo) {
emit clipItemSelected(NULL);
emit transitionItemSelected(NULL);
}
}
void CustomTrackView::updatePalette()