Menu

#1784 All Undo disappears after "Merge MusicXML File(s)

None
feedback
None
5
4 hours ago
2026-06-30
musewhirl
No

Implementing Undo for this operation could prove tricky, but without it perhaps the user should be warned that there is no undo after using it.

Probably doesn't matter what needs to be undone, but just in case:

Steps to reproduce:

  1. Open a session with a number of MIDI tracks
  2. Delete some MIDI tracks (CTRL-D)
  3. Use CTRL-Z to undo them
  4. Now delete them again
  5. Select File/Merge/Merge MusicXML File(s) to bring in multiple MIDI tracks from an XML file
  6. Use CTRL-Z and nothing happens
  7. As far as I can tell, you can't get back the deleted tracks

I believe all previous changes are forgotten.

Discussion

  • Philip Leishman

    Philip Leishman - 2026-07-02

    Yes - on merge all command history is cleared.
    Strangely enough there is a lot of undo/redo logic in MergeFileCommand so undo should work.
    Maybe the clearing of the history is "accidental" ?
    Anyone know ?

     
  • Philip Leishman

    Philip Leishman - 2026-07-03

    It seems this is also true for merge of midi and RG2 files.
    I made a straightforward change to respect the clearHistory flag and everything seems to work OK.
    See codeberg merge request.

     

    Last edit: Ted Felix 5 hours ago
  • Philip Leishman

    Philip Leishman - 2026-07-03
    • assigned_to: Philip Leishman
     
  • Ted Felix

    Ted Felix - 4 hours ago

    Philip's fix merged as [3e9794]. Please test latest git.

     

    Related

    Commit: [3e9794]

  • Ted Felix

    Ted Felix - 4 hours ago
    • status: open --> feedback
     

Log in to post a comment.

Monday.com Logo