fix #16917: add to selection is rather invert selection - add to selection now add elements only if they are not already present in selection to avoid the inversion
This commit is contained in:
parent
9d524310dc
commit
a208427665
1 changed files with 5 additions and 2 deletions
|
@ -3863,8 +3863,11 @@ void MuseScore::selectElementDialog(Element* e)
|
|||
score->select(ee, SELECT_ADD, 0);
|
||||
}
|
||||
else if (sd.doAdd()) {
|
||||
foreach(Element* ee, pattern.el)
|
||||
score->select(ee, SELECT_ADD, 0);
|
||||
QList<Element*> sl(score->selection().elements());
|
||||
foreach(Element* ee, pattern.el) {
|
||||
if(!sl.contains(ee))
|
||||
score->select(ee, SELECT_ADD, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue