shift drag on an unselected note didn't work (FIXED)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1932 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-15 22:32:51 +00:00
parent b3ed6e7fe9
commit db8f7e8b2d
3 changed files with 11 additions and 6 deletions

View File

@@ -1435,6 +1435,14 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me )
++it;
}
// if clicked on an unselected note, remove selection
// and select that new note
if( ! m_currentNote->selected() )
{
clearSelectedNotes();
m_currentNote->setSelected( true );
}
// clicked at the "tail" of the note?
@@ -1500,12 +1508,7 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me )
}
// if clicked on an unselected note, remove selection
if( ! m_currentNote->selected() )
{
clearSelectedNotes();
m_currentNote->setSelected( true );
}
engine::getSong()->setModified();
}