mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-21 06:06:25 +01:00
Pianoroll: drop region reference when session goes away
This commit is contained in:
parent
08f77136b9
commit
5e83fc95b4
2 changed files with 8 additions and 0 deletions
|
|
@ -2962,6 +2962,13 @@ Pianoroll::select_all_within (Temporal::timepos_t const & start, Temporal::timep
|
||||||
commit_reversible_selection_op ();
|
commit_reversible_selection_op ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Pianoroll::session_going_away ()
|
||||||
|
{
|
||||||
|
unset (true);
|
||||||
|
CueEditor::session_going_away ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Pianoroll::set_session (ARDOUR::Session* s)
|
Pianoroll::set_session (ARDOUR::Session* s)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ class Pianoroll : public CueEditor
|
||||||
|
|
||||||
PianorollMidiView* midi_view() const { return view; }
|
PianorollMidiView* midi_view() const { return view; }
|
||||||
void set_session (ARDOUR::Session*);
|
void set_session (ARDOUR::Session*);
|
||||||
|
void session_going_away ();
|
||||||
bool allow_trim_cursors () const;
|
bool allow_trim_cursors () const;
|
||||||
|
|
||||||
void shift_midi (Temporal::timepos_t const &, bool model);
|
void shift_midi (Temporal::timepos_t const &, bool model);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue