]> git.sesse.net Git - kdenlive/commitdiff
make sure subclip is visible when added to the project tree
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Apr 2010 21:10:00 +0000 (21:10 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Tue, 27 Apr 2010 21:10:00 +0000 (21:10 +0000)
svn path=/trunk/kdenlive/; revision=4404

src/projectlist.cpp

index 415acccd3556e428c88a83f9f4501a06e1ca2f5d..4fbfc7737657afb695ce8432fe1df45d4d25c746 100644 (file)
@@ -1529,6 +1529,7 @@ void ProjectList::addClipCut(const QString &id, int in, int out, const QString d
         SubProjectItem *sub = new SubProjectItem(clip, in, out, desc);
         if (newItem && desc.isEmpty() && !m_listView->isColumnHidden(1)) {
             if (!clip->isExpanded()) clip->setExpanded(true);
+           m_listView->scrollToItem(sub);
             m_listView->editItem(sub, 1);
         }
         QPixmap p = clip->referencedClip()->thumbProducer()->extractImage(in, (int)(sub->sizeHint(0).height()  * m_render->dar()), sub->sizeHint(0).height() - 2);