Commit be39d5b2 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

TracsView: Don't create useless commands macro

parent 13b694b1
...@@ -1167,7 +1167,6 @@ TracksView::mouseReleaseEvent( QMouseEvent *event ) ...@@ -1167,7 +1167,6 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
targetPos = m_actionItem->startPos() - m_effectTarget->startPos(); targetPos = m_actionItem->startPos() - m_effectTarget->startPos();
effectItem->setContainer( m_effectTarget ); effectItem->setContainer( m_effectTarget );
} }
UndoStack::getInstance()->beginMacro( "Move effect" );
} }
else else
UndoStack::getInstance()->beginMacro( "Move clip" ); UndoStack::getInstance()->beginMacro( "Move clip" );
...@@ -1180,7 +1179,8 @@ TracksView::mouseReleaseEvent( QMouseEvent *event ) ...@@ -1180,7 +1179,8 @@ TracksView::mouseReleaseEvent( QMouseEvent *event )
m_actionItem->groupItem()->m_oldTrack = m_actionItem->groupItem()->track()->trackWorkflow(); 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_actionItem->m_oldTrack = m_actionItem->track()->trackWorkflow();
m_actionRelativeX = -1; m_actionRelativeX = -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment