if a different window was selected and you hold control and then click in the piano roll, it didn't do selection like it should (FIXED)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1938 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Andrew Kelley
2008-12-16 04:00:00 +00:00
parent e7484c89fd
commit 0aec3c0b05
3 changed files with 12 additions and 1 deletions

View File

@@ -1271,6 +1271,16 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me )
noteUnderMouse()->editDetuningPattern();
return;
}
// if holding control, go to selection mode
if( _me->modifiers() & Qt::ControlModifier && m_editMode != ModeSelect )
{
m_ctrlMode = m_editMode;
m_editMode = ModeSelect;
QApplication::changeOverrideCursor(
QCursor( Qt::ArrowCursor ) );
update();
}
// keep track of the point where the user clicked down
if( _me->button() == Qt::LeftButton )