Pianoroll: drop region reference when session goes away

This commit is contained in:
Paul Davis 2025-06-04 21:41:01 -06:00
parent 08f77136b9
commit 5e83fc95b4
2 changed files with 8 additions and 0 deletions

View file

@ -2962,6 +2962,13 @@ Pianoroll::select_all_within (Temporal::timepos_t const & start, Temporal::timep
commit_reversible_selection_op ();
}
void
Pianoroll::session_going_away ()
{
unset (true);
CueEditor::session_going_away ();
}
void
Pianoroll::set_session (ARDOUR::Session* s)
{

View file

@ -142,6 +142,7 @@ class Pianoroll : public CueEditor
PianorollMidiView* midi_view() const { return view; }
void set_session (ARDOUR::Session*);
void session_going_away ();
bool allow_trim_cursors () const;
void shift_midi (Temporal::timepos_t const &, bool model);