Skip to content

Commit

Permalink
fix #40056: Crash by selecting twice or once all similar elements
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 27, 2014
1 parent 36c5f72 commit 37735ed
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions mscore/scoreview.cpp
Expand Up @@ -2610,16 +2610,22 @@ void ScoreView::cmd(const QAction* a)
}
}
else if (cmd == "select-similar") {
Element* e = _score->selection().element();
mscore->selectSimilar(e, false);
if (_score->selection().isSingle()) {
Element* e = _score->selection().element();
mscore->selectSimilar(e, false);
}
}
else if (cmd == "select-similar-staff") {
Element* e = _score->selection().element();
mscore->selectSimilar(e, true);
if (_score->selection().isSingle()) {
Element* e = _score->selection().element();
mscore->selectSimilar(e, true);
}
}
else if (cmd == "select-dialog") {
Element* e = _score->selection().element();
mscore->selectElementDialog(e);
if (_score->selection().isSingle()) {
Element* e = _score->selection().element();
mscore->selectElementDialog(e);
}
}
else if (cmd == "play") {
if (seq && seq->canStart()) {
Expand Down

0 comments on commit 37735ed

Please sign in to comment.