[vlmc-devel] commit: TracksView: Add an empty track when an effect is added to the upper track. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Thu Sep 9 01:18:11 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Sep  9 00:53:15 2010 +0200| [ef81c0e3260bf2a3b7d5fb0733beb0e6aaf939c2] | committer: Hugo Beauzée-Luyssen 

TracksView: Add an empty track when an effect is added to the upper track.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ef81c0e3260bf2a3b7d5fb0733beb0e6aaf939c2
---

 src/Gui/timeline/TracksView.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index c6e2340..e0a3366 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -783,6 +783,8 @@ TracksView::dropEvent( QDropEvent *event )
                                                                   track->trackWorkflow() ) );
                     m_dragEffectItem->m_oldTrack = track->trackWorkflow();
                     event->acceptProposedAction();
+                    if ( getTrack( Workflow::VideoTrack, m_numVideoTrack - 1 )->childItems().count() > 0 )
+                        addTrack( Workflow::VideoTrack );
                     break ;
                 }
             }



More information about the Vlmc-devel mailing list