[vlmc-devel] commit: timeline: avoid the "freeze" when the first clip is added to the timeline. (Ludovic Fauvet )

git at videolan.org git at videolan.org
Tue Mar 23 02:06:17 CET 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Tue Mar 23 02:02:53 2010 +0100| [406f6df8a15b1e24bc80f2b14be98c634b044542] | committer: Ludovic Fauvet 

timeline: avoid the "freeze" when the first clip is added to the timeline.

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

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

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 9b68fe5..9e33506 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -396,7 +396,8 @@ TracksView::moveMediaItem( AbstractGraphicsMediaItem *item, QPoint position )
         // When the mouse pointer is not on a track,
         // use the last known track.
         // This avoids "breaks" when moving a rush
-        if ( !lastKnownTrack ) return;
+        if ( !lastKnownTrack )
+            lastKnownTrack = getTrack( MainWorkflow::VideoTrack, 0 );
         track = lastKnownTrack;
     }
 



More information about the Vlmc-devel mailing list