From 2242008d4cfd29a932d26fb7d94b5800490b7c3b Mon Sep 17 00:00:00 2001 From: lasconic Date: Tue, 24 Dec 2013 12:31:11 +0100 Subject: [PATCH] fix #23973: Inspector works on only one element after select all similar --- mscore/musescore.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mscore/musescore.cpp b/mscore/musescore.cpp index 301b061393..9a7448595f 100644 --- a/mscore/musescore.cpp +++ b/mscore/musescore.cpp @@ -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;