[vlmc-devel] commit: TracsView: Don't create useless commands macro ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)
git at videolan.org
git at videolan.org
Mon Dec 27 21:52:37 CET 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed Dec 1 18:16:59 2010 +0100| [be39d5b235da621bb4548751714cb48f2ff093b8] | committer: Hugo Beauzée-Luyssen
TracsView: Don't create useless commands macro
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=be39d5b235da621bb4548751714cb48f2ff093b8
---
src/Gui/timeline/TracksView.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Gui/timeline/TracksView.cpp b/src/Gui/timeline/TracksView.cpp
index 2fcbf10..89dd1a8 100644
--- a/src/Gui/timeline/TracksView.cpp
+++ b/src/Gui/timeline/TracksView.cpp
@@ -1167,7 +1167,6 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
targetPos = m_actionItem->startPos() - m_effectTarget->startPos();
effectItem->setContainer( m_effectTarget );
}
- UndoStack::getInstance()->beginMacro( "Move effect" );
}
else
UndoStack::getInstance()->beginMacro( "Move clip" );
@@ -1180,7 +1179,8 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
m_actionItem->groupItem()->m_oldTrack = m_actionItem->groupItem()->track()->trackWorkflow();
}
- UndoStack::getInstance()->endMacro();
+ if ( effectItem == NULL )
+ UndoStack::getInstance()->endMacro();
m_actionItem->m_oldTrack = m_actionItem->track()->trackWorkflow();
m_actionRelativeX = -1;
More information about the Vlmc-devel
mailing list