Cancelling new text leaves an undo step that no longer exists, and the score is marked as modified

Aperta
#35,771 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
desktop, tooling

Direzione di ricerca

Start by tracing the score history and undo handling for text and dynamic editing, then compare how cancelled edits and grouped undo steps reach the History panel. Reproduce the three reported cases in MuseScore Studio and identify the relevant code and tests from those entry points. Done means cancelling empty text leaves the score unmodified, and each History entry matches one undo step and updates immediately.

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

Descrizione

P3 UX/interaction
Issue type

UX/Interaction bug (incorrect behaviour)

Description with steps to reproduce
  1. Open a saved score
  2. Select a note and press Ctrl+T to add staff text
  3. Press Esc without typing anything

Result: no text is added, but the score is marked as modified, the History panel lists Add text, and the Edit menu still names Undo Add text (greyed out). If a change was made before step 2, Undo undoes that change, while the History panel still shows Add text as the last step.
Expected: the score isn't marked as modified, and nothing refers to the cancelled text.

  1. Add an f to a note, then a crescendo hairpin from the f to a later note
  2. Select the hairpin's end handle, press Ctrl+D and choose pp in the popup (softer than the f, so the hairpin flips to a diminuendo)

Result: the History panel ends with these three steps, which to the user feels like a single action, i.e. adding a pp:

  • Add dynamic (opening the dynamics popup)
  • Add dynamic (clicking the pp)
  • Change hairpin type (the hairpin is flipped)

A single undo removes all three steps.

Expected: the History panel matches what undo does: one entry for one undo step.

The History panel only catches up after the next change or undo.

The same happens when typing text, such as a dynamic or staff text: after editing ends, the History panel still lists one Keystroke edit entry per key typed.

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/e2bf3879-17b1-4dd2-9291-a74c2970948c

https://github.com/user-attachments/assets/f93f6741-d992-405f-8a7a-d5c7ab5a4c5f

In which versions of MuseScore Studio is this issue present?

Nightly main

Regression

No.

Operating system

macOS 27.2.1

Additional context

No response

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.4k
Merge medio
2g 18h
PR unite (30g)
114

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.