From c2c411a982a5313030fa0dc710c671288f8cdb7c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 24 Nov 2025 21:35:09 -0700 Subject: [PATCH] edit note dialog: store note IDs before note diff, in case they change during it --- gtk2_ardour/edit_note_dialog.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/edit_note_dialog.cc b/gtk2_ardour/edit_note_dialog.cc index 938221df7c..9896be0eb1 100644 --- a/gtk2_ardour/edit_note_dialog.cc +++ b/gtk2_ardour/edit_note_dialog.cc @@ -229,16 +229,16 @@ EditNoteDialog::done (int r) } + list notes; + for (set::iterator i = _events.begin(); i != _events.end(); ++i) { + notes.push_back ((*i)->note()->id()); + } + if (had_change) { _region_view->apply_note_diff (); } else { _region_view->abort_note_diff (); } - list notes; - for (set::iterator i = _events.begin(); i != _events.end(); ++i) { - notes.push_back ((*i)->note()->id()); - } - _region_view->select_notes (notes, true); }