update playlist after tremolo copy/paste

This commit is contained in:
ws 2015-01-29 10:19:25 +01:00
parent 67e54ad082
commit 3b22424ac9
3 changed files with 8 additions and 6 deletions

View file

@ -2974,7 +2974,7 @@ TremoloChordType Chord::tremoloChordType() const
else if (_tremolo->chord2() == this)
return TremoloChordType::TremoloSecondNote;
else
qDebug("Chord::tremoloChordType(): inconsistency");
qDebug("Chord::tremoloChordType(): inconsistency %p - %p", _tremolo->chord1(), _tremolo->chord2());
}
}
return TremoloChordType::TremoloSingle;

View file

@ -126,11 +126,11 @@ void Score::endCmd(bool rollback)
const InputState& is = s->inputState();
if (is.noteEntryMode() && is.segment())
s->setPlayPos(is.segment()->tick());
}
if (_playlistDirty) {
emit playlistChanged();
_playlistDirty = false;
}
}
if (MScore::debugMode)
qDebug("===endCmd() %d", undo()->current()->childCount());

View file

@ -1439,7 +1439,9 @@ void Score::addElement(Element* element)
break;
case Element::Type::CHORD:
createPlayEvents(static_cast<Chord*>(element));
setPlaylistDirty(true);
// create playlist does not work here bc. tremolos may not be complete
// createPlayEvents(static_cast<Chord*>(element));
break;
case Element::Type::NOTE: {