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

Fix "Clip in project tree" in groups: http://kdenlive.org/mantis/view.php?id=2781

parent cb7c6a34
......@@ -3670,12 +3670,13 @@ void MainWindow::slotClipInTimeline(const QString &clipId)
void MainWindow::slotClipInProjectTree()
{
if (m_activeTimeline) {
const QStringList &clipIds = m_activeTimeline->projectView()->selectedClips();
QStringList clipIds;
if (m_mainClip) clipIds << m_mainClip->clipProducer();
else clipIds = m_activeTimeline->projectView()->selectedClips();
if (clipIds.isEmpty())
return;
m_projectListDock->raise();
for (int i = 0; i < clipIds.count(); i++)
m_projectList->selectItemById(clipIds.at(i));
m_projectList->selectItemById(clipIds.at(0));
if (m_projectMonitor->isActive())
slotSwitchMonitors();
}
......
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