Skip to content

Commit

Permalink
fix #16077 part 1: Double click an instrument name to open the corres…
Browse files Browse the repository at this point in the history
…ponding menu
  • Loading branch information
SKefalidis committed Apr 17, 2020
1 parent dcb744c commit 3b8f103
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mscore/events.cpp
Expand Up @@ -729,9 +729,15 @@ void ScoreView::mouseDoubleClickEvent(QMouseEvent* mouseEvent)

Element* clickedElement = elementNear(toLogical(mouseEvent->pos()));

if (!(clickedElement && clickedElement->isEditable()))
if (!clickedElement)
return;

if (!clickedElement->isEditable()) {
if (clickedElement->isInstrumentName()) // double-click an instrument name to open the edit staff/part properties menu
elementPropertyAction("staff-props", clickedElement);
return;
}

startEditMode(clickedElement);

if (clickedElement->isTextBase()) {
Expand Down

0 comments on commit 3b8f103

Please sign in to comment.