Linked mark incorrect when deleting the second last linked staff

• Mar 24, 2018 - 07:01
Reported version
2.1
Type
Functional
Severity
3
Status
active
Project

press "i" open the instrument window.
unlink1.png
After deleting the second last linked staff, the last one will be set as individual staff.
unlink2.png
Although this bug is not affect the further interaction and will be disappear by reopen the instruments window.

But the searching logic is incorrect and it does change the _linked property. At
File: instrwidgt
Functions: void InstrumentsWidget::on_removeButton_clicked()
Line:622

I have no idea whether it will cause unpredictable behaviours.
test file: incorrect_link.mscz


Comments

This behaviour is the same since all previous 2.x versions. And as you notice, " this bug is not affect the further interaction and will be disappear by reopen the instruments window." So, why "major" status?
In my memory, this behaviour, even if it seems unexpected of course, has never caused the least concern.
There are other unexpected behaviors, former as well, that also seem harmless.
This one for example (spectacular): #30096: Changes to advanced style properties in tablature causes clef in Instruments to change