Pianoroll: drop region reference when session goes away
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user