[vlmc-devel] commit: TracksView: Fixing bad mouse releasing behaviour. ( =?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 17:57:10 2010 +0100| [c2558dcb3e8d1d81f75796c40d8800280459ba7c] | committer: Hugo Beauzée-Luyssen 

TracksView: Fixing bad mouse releasing behaviour.

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

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

diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 3cee278..cf314a8 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -1137,16 +1137,16 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
             {
                 const AbstractGraphicsMediaItem *container = effectItem->container();
                 if ( container != NULL && container->startPos() + effectItem->begin() == effectItem->startPos() )
-                    return ;
+                    goto out;
                 else if ( container == NULL && effectItem->startPos() == effectItem->begin() )
-                    return ;
+                    goto out;
             }
         }
         else
         {
             if ( m_actionItem->m_oldTrack == m_actionItem->track()->trackWorkflow() &&
                  m_actionItem->startPos() == m_actionItem->track()->trackWorkflow()->getClipPosition( m_actionItem->uuid() ) )
-                return ;
+                goto out;
         }
 
         updateDuration();
@@ -1213,6 +1213,7 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
         m_actionItem = NULL;
     }
 
+out:
     m_action = TracksView::None;
     //setDragMode( QGraphicsView::NoDrag );
     QGraphicsView::mouseReleaseEvent( event );



More information about the Vlmc-devel mailing list