Skip to content

Commit

Permalink
fix #234781: Selection with Ctrl+click is broken by clicking on the c…
Browse files Browse the repository at this point in the history
…anvas
  • Loading branch information
mattmcclinch committed Apr 3, 2018
1 parent b92a6e0 commit d13fc57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions libmscore/score.cpp
Expand Up @@ -2777,14 +2777,10 @@ void Score::selectAdd(Element* e)
m == lastMeasure() ? 0 : m->last(),
0,
nstaves());
setUpdateAll();
selState = SelState::RANGE;
_selection.updateSelectedElements();
}
else {
select(0, SelectType::SINGLE, 0);
return;
}
setUpdateAll();
selState = SelState::RANGE;
_selection.updateSelectedElements();
}
else { // None or List
addRefresh(e->abbox());
Expand Down
2 changes: 1 addition & 1 deletion mscore/events.cpp
Expand Up @@ -297,7 +297,7 @@ void ScoreView::mousePressEventNormal(QMouseEvent* ev)
_score->select(m, st, staffIdx);
_score->setUpdateAll();
}
else
else if (st != SelectType::ADD)
_score->deselectAll();
}
_score->update();
Expand Down

0 comments on commit d13fc57

Please sign in to comment.