Skip to content

Commit

Permalink
fix #16492: The voice toolbar buttons don't update when a note from t…
Browse files Browse the repository at this point in the history
…he drum tool palette is selected
  • Loading branch information
lasconic committed Jun 23, 2012
1 parent 25bfd0d commit 3ba9343
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mscore/drumtools.cpp
Expand Up @@ -182,5 +182,11 @@ void DrumTools::drumNoteSelected(int val)
int pitch = note->pitch();
seq->startNote(staff->part()->instr()->channel(0), pitch, 80, ticks, 0.0);
_score->inputState().setDrumNote(note->pitch());
_score->inputState().setTrack(element->track());

getAction("voice-1")->setChecked(element->voice() == 0);
getAction("voice-2")->setChecked(element->voice() == 1);
getAction("voice-3")->setChecked(element->voice() == 2);
getAction("voice-4")->setChecked(element->voice() == 3);
}

0 comments on commit 3ba9343

Please sign in to comment.