Skip to content

Commit

Permalink
Merge pull request #5163 from Jojo-Schmitz/#291199
Browse files Browse the repository at this point in the history
fix #291199: Problem with selection/edit mode in a broken context menu
  • Loading branch information
dmitrio95 committed Jun 25, 2019
2 parents 38dab17 + 83891a4 commit 79991b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void ScoreView::focusOutEvent(QFocusEvent* event)

bool ScoreView::startTextEditingOnMouseRelease(QMouseEvent* mouseEvent)
{
if (!editData.element)
if (!editData.element || mouseEvent->button() != Qt::LeftButton)
return false;

if (!(editData.element->isEditable() && editData.element->isTextBase()))
Expand Down

0 comments on commit 79991b9

Please sign in to comment.