Skip to content

Commit

Permalink
fix #23973: Inspector works on only one element after select all similar
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Dec 24, 2013
1 parent 2731d27 commit 2242008
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mscore/musescore.cpp
Expand Up @@ -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);
}
}

//---------------------------------------------------------
Expand Down Expand Up @@ -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);
}
}
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2242008

Please sign in to comment.