Crash when removing a staff that was selected in a part

• Feb 2, 2019 - 15:26
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
Yes
Workaround
No
Project

Steps to reproduce:
1. Create new score (Trumpet, Trumpet, Trombone, Tuba)
2. File > Parts
3. Create a New part that includes both trumpets
4. Add some notes to the score (particularly the trumpet staves)
5. Switch to the Trumpet part/tab
6. Click to select a measure on the second trumpet staff
7. Go back to the main tab
8. Edit Instruments
9. Remove the second trumpet > OK
10. Switch back to the Trumpet part/tab
MuseScore crashes

This is a new bug in the 3.0 series (tested using 3.0.2.5315, on Windows 10). Musescore 2.3.2 does not crash under these conditions.