fix #23973: Inspector works on only one element after select all similar

This commit is contained in:
lasconic 2013-12-24 12:31:11 +01:00
parent 2731d27c3b
commit 2242008d4c

View file

@ -3745,6 +3745,11 @@ void MuseScore::selectSimilar(Element* e, bool sameStaff)
foreach(Element* e, pattern.el) {
score->select(e, SELECT_ADD, 0);
}
if (score->selectionChanged()) {
score->setSelectionChanged(false);
SelState ss = score->selection().state();
selectionChanged(ss);
}
}
//---------------------------------------------------------
@ -3779,6 +3784,11 @@ void MuseScore::selectElementDialog(Element* e)
score->select(ee, SELECT_ADD, 0);
}
}
if (score->selectionChanged()) {
score->setSelectionChanged(false);
SelState ss = score->selection().state();
selectionChanged(ss);
}
}
}
@ -4540,6 +4550,7 @@ int main(int argc, char* av[])
for (int i = 0; i < argv.size();) {
QString s = argv[i];
qDebug() << s;
if (s[0] != '-') {
++i;
continue;