From: Jean-Baptiste M. <jb...@kd...> - 2013-02-23 08:04:15
|
Git commit ac6267bc42490bd7cf83c0a3d3ef0610a02ba337 by Jean-Baptiste Mardelle. Committed on 23/02/2013 at 09:02. Pushed by mardelle into branch 'master'. Fix "Clip in project tree" in groups: http://kdenlive.org/mantis/view.php?id=2781 M +4 -3 src/mainwindow.cpp http://commits.kde.org/kdenlive/ac6267bc42490bd7cf83c0a3d3ef0610a02ba337 diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index acb2d2d..475a609 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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(); } |