double-clicking on Instrument Text in scoreview will cause Edit->Instrument to display name as "Part"

• Mar 17, 2017 - 08:34
Reported version
3.0
Type
Functional
Severity
S4 - Minor
Status
closed
Project

Credit to cadiz for reporting in https://musescore.org/en/node/182006#comment-677556

Reproduction steps on 3.0-dev 3f031064e:

1. My first score
2. Edit->instruments add flute & OK
3. Double click on flute's instrument name (may change text or not)
4. view Edit->instruments and see that the flute's name changed to "Part"

Screenshot (184).png

and then could even double click on the Piano instrument name and find it change to part also:

Screenshot (185).png


Comments

probably the last line of InstrumentName::setInstrumentNameType():

score()->undo(new ChangePart(part, instrument, part->name()));

Is mistakenly setting it...that would be my first guess...