do not crash when pressing right mouse button while moving a note with left mouse button

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1744 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-10-04 23:25:18 +00:00
parent bfb3a7f407
commit b38addd9c7
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,9 @@
set global alignment via a #define
* src/gui/piano_roll.cpp:
fixed typo
- fixed typo
- do not crash when pressing right mouse button while moving a note
with left mouse button
* src/core/song.cpp:
lock mixer while adjusting lengths of notePlayHandles after tempo change

View File

@@ -1090,7 +1090,7 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me )
engine::getSong()->setModified();
}
else if( ( _me->button() == Qt::RightButton &&
else if( ( _me->buttons() == Qt::RightButton &&
m_editMode == ModeDraw ) ||
m_editMode == ModeErase )
{