Skip to content

Conversation

@cbjeukendrup
Copy link
Member

…when pressing OK without making changes.

Use Staff::defaultClefType rather than Instrument::clefType, to match ChangeStaff, i.e. to make the operation a no-op, as it should be.

When replacing the instrument, the clef is still updated as expected, namely by NotationParts::replaceInstrument.

Resolves: #26362
Resolves: #24274
(N.B. in both issues, changing the name or anything isn’t even necessary to reproduce; just pressing OK/Apply is enough.)

@cbjeukendrup cbjeukendrup force-pushed the editstaff_dont_change_clef_unexpectedly branch from 0936fa2 to 368c573 Compare November 6, 2025 15:32
…when pressing OK without making changes.

Use Staff::defaultClefType rather than Instrument::clefType, to match `ChangeStaff`, i.e. to make the operation a no-op, as it should be.

When replacing the instrument, the clef is still updated as expected, namely by `NotationParts::replaceInstrument`.
@cbjeukendrup cbjeukendrup force-pushed the editstaff_dont_change_clef_unexpectedly branch from 368c573 to 96e32c4 Compare November 6, 2025 16:22
@zacjansheski
Copy link
Contributor

zacjansheski commented Nov 6, 2025

This is still reproducible but I'm guessing it's a separate issue specific to the grand staff (does require changing name)

#24274 (comment)

@cbjeukendrup
Copy link
Member Author

Hm.... it's actually related. But it's a bit awkward to solve. I'll put this on hold and look at it again later, unless we delete the whole staff/part properties dialog before that time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants