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

@@ -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 )
{