Merge pull request #1699 from curlymorphic/bbundo

Song Editor and bbEditor undo.
This commit is contained in:
Tres Finocchiaro
2015-01-29 15:39:43 -05:00
2 changed files with 2 additions and 0 deletions

View File

@@ -1439,6 +1439,7 @@ void TrackContentWidget::mousePressEvent( QMouseEvent * _me )
else if( _me->button() == Qt::LeftButton &&
!m_trackView->trackContainerView()->fixedTCOs() )
{
getTrack()->addJournalCheckPoint();
const MidiTime pos = getPosition( _me->x() ).getTact() *
MidiTime::ticksPerTact();
TrackContentObject * tco = getTrack()->createTCO( pos );

View File

@@ -838,6 +838,7 @@ void PatternView::mousePressEvent( QMouseEvent * _me )
}
else // note at step found
{
m_pat->addJournalCheckPoint();
if( n->length() < 0 )
{
n->setLength( 0 ); // set note as enabled beat note