Skip to content

Commit

Permalink
fix #281957 move highlight update to work for cursor changes and on c…
Browse files Browse the repository at this point in the history
…lick of other elements that aren't notes
  • Loading branch information
peterhieuvu committed Mar 5, 2019
1 parent 6d35784 commit d57c4d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion mscore/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ void ScoreView::mousePressEventNormal(QMouseEvent* ev)
}
_score->update();
mscore->endCmd();
mscore->updatePaletteBeamMode(clickOffElement);
}

//---------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions mscore/musescore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,7 @@ void MuseScore::updatePaletteBeamMode(bool unselect)
if (p->name() == "Beam Properties") {
if (unselect) {
p->setSelected(-1);
p->update();
return;
}
const Selection sel = cs->selection();
Expand Down Expand Up @@ -2205,6 +2206,7 @@ void MuseScore::updatePaletteBeamMode(bool unselect)
break;
default:
p->setSelected(-1);
p->update();
return;
}
for (int i = 0; i < p->size(); ++i) {
Expand Down Expand Up @@ -5815,6 +5817,8 @@ void MuseScore::endCmd()
selectionChanged(SelState::NONE);
}
updateInspector();
if (cv && paletteBox)
updatePaletteBeamMode(cv->clickOffElement);
}

//---------------------------------------------------------
Expand Down

0 comments on commit d57c4d2

Please sign in to comment.