From ae0756c43b35e6945030aec6e99a19890b571800 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 7 Dec 2008 21:01:17 +0000 Subject: [PATCH] (hopefully) fixed bug where shift+drag wasn't copying notes git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1875 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 5 +++++ src/gui/piano_roll.cpp | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 808eda1a4..3a7d2f21c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-12-07 Andrew Kelley + + * src/gui/piano_roll.cpp: + (hopefully) fixed bug where shift+drag wasn't copying notes + 2008-12-05 Andrew Kelley * include/piano_roll.h: diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index 356b09456..ba39f6398 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1290,10 +1290,9 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me ) QApplication::setOverrideCursor( c ); // if they're holding shift, copy all selected notes - if( *it != created_new_note && + if( //*it != created_new_note && _me->modifiers() & Qt::ShiftModifier ) { - // vector to hold new notes until we're through the loop QVector newNotes; it = notes.begin();