Skip to content
Snippets Groups Projects
Commit 6eba7639 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

TscoreObject: better condition syntax

parent c200d424
No related branches found
No related tags found
No related merge requests found
......@@ -307,7 +307,9 @@ void TscoreObject::addNote(const Tnote &newNote, bool fromQML)
void TscoreObject::setNote(TnoteItem *no, const Tnote &n)
{
if (no) {
if (!no)
return;
if (m_allowAdding && m_meter->meter() != Tmeter::NoMeter && no == lastNote() && no->note()->rtm != n.rtm) {
deleteLastNote();
addNote(n);
......@@ -406,7 +408,6 @@ void TscoreObject::setNote(TnoteItem *no, const Tnote &n)
note(2)->setVisible(false);
}
}
}
void TscoreObject::setNote(int noteNr, const Tnote &n)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment