Edit string data dialog opens empty, with no strings and 0 frets, from "Instrument/Staff properties"

Aperta Adatta ai principianti
#35,829 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@igorkorsukov ci sta già lavorando.

Dal 1/12/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
desktop

Direzione di ricerca

Leggi EditStringData e EditStaff::editStringDataClicked(), dove l’issue identifica la configurazione della finestra di dialogo e il percorso di costruzione diretta. Verifica come viene attivata la configurazione della tabella quando la finestra di dialogo si apre tramite Interactive, quindi confrontala con il percorso diretto. Il lavoro è completato quando la finestra di dialogo Classical Guitar mostra le sue sei corde e il numero di tasti, e facendo clic su OK i dati vengono mantenuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

P2 regression nightly UX/interaction
Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce
  1. Create a new score with Classical Guitar.
  2. Right-click the staff -> Instrument/Staff properties. In Pitch properties, "Number of strings" shows 6.

Actual: the dialog's string list is empty and "Number of frets" is 0. Clicking OK saves that empty data to the instrument.

Expected: the dialog lists the instrument's 6 strings and its number of frets, as in 4.7.

Possible cause: 71bc6c4b0b moved the table setup in EditStringData from the constructor to componentComplete(). That function is only called when a dialog is opened through Interactive (interactive.cpp). EditStaff::editStringDataClicked() creates the dialog directly with new EditStringData(...) and exec(), so the setup never runs. I tested that calling esd->componentComplete() after construction makes the dialog work again.

Supporting files, videos and screenshots
2026-11-29_empty-edit-string-data-dialog
In which versions of MuseScore Studio is this issue present?

Latest main (527e4cfd49)

Regression

Yes, this works in the latest released version and is broken in the nightly builds

Operating system

macOS 27.0.1

Additional context

Found while testing a fix for #34314, which needs this dialog. I used Claude Code with Opus 5.5 to find the cause of the error, all testing was done manually, same as code writing.

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible
Lingua principale
C++
Stelle
15.5k
Fork
3.5k
Merge medio
2g 19h
PR unite (30g)
124

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di musescore/MuseScore

Tutte le issue di musescore/MuseScore

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.