[vlmc-devel] commit: TracksView: Factorization. ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Tue Nov 30 18:03:21 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Nov 30 18:00:38 2010 +0100| [05abc205b7dc8a85fe4c7b02ac4eb2189a836e00] | committer: Hugo Beauzée-Luyssen 

TracksView: Factorization.

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

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

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index cf314a8..2fcbf10 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -1184,9 +1184,7 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
 
         m_actionItem->m_oldTrack = m_actionItem->track()->trackWorkflow();
         m_actionRelativeX = -1;
-        m_actionItem = NULL;
         m_lastKnownTrack = NULL;
-        m_effectTarget = NULL;
     }
     else if ( m_action == TracksView::Resize )
     {
@@ -1209,11 +1207,11 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
         m_actionItem->triggerResize( target, m_actionItem->helper(),
                                      newBegin, newEnd, m_actionItem->pos().x() );
         updateDuration();
-        m_effectTarget = NULL;
-        m_actionItem = NULL;
     }
 
 out:
+    m_effectTarget = NULL;
+    m_actionItem = NULL;
     m_action = TracksView::None;
     //setDragMode( QGraphicsView::NoDrag );
     QGraphicsView::mouseReleaseEvent( event );



More information about the Vlmc-devel mailing list