From d4fea40c00652b5f99f78af3cf98ef73c3d778b2 Mon Sep 17 00:00:00 2001 From: Calum Matheson Date: Thu, 19 Mar 2026 12:43:11 +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 2f1ed8bfbc407..f5db540a7bf02 100644 --- a/src/notationscene/widgets/editstaff.cpp +++ b/src/notationscene/widgets/editstaff.cpp @@ -586,6 +586,7 @@ void EditStaff::showReplaceInstrumentDialog() m_instrument = Instrument::fromTemplate(&val); m_staff->setStaffType(m_tick, *staffType); + m_staff->setDefaultClefType(m_instrument.clefType(0)); updateInstrument(); updateStaffType(*staffType);