From f97e3669981a3aecc9c00a91827881c54de49a5d Mon Sep 17 00:00:00 2001 From: Calum Matheson Date: Thu, 19 Mar 2026 12:51:03 +0000 Subject: [PATCH] Fix default clef not updating when replacing instrument Co-authored-by: Cubiking --- src/notationscene/widgets/editstaff.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notationscene/widgets/editstaff.cpp b/src/notationscene/widgets/editstaff.cpp index bf14bced759d9..9e43a0d7b71e3 100644 --- a/src/notationscene/widgets/editstaff.cpp +++ b/src/notationscene/widgets/editstaff.cpp @@ -580,6 +580,7 @@ void EditStaff::showReplaceInstrumentDialog() m_instrument = Instrument::fromTemplate(&val); m_staff->setStaffType(Fraction(0, 1), *staffType); + m_staff->setDefaultClefType(m_instrument.clefType(0)); updateInstrument(); updateStaffType(*staffType);