diff --git a/gtk2_ardour/pianoroll.cc b/gtk2_ardour/pianoroll.cc index 4548d53521..6c86b376ec 100644 --- a/gtk2_ardour/pianoroll.cc +++ b/gtk2_ardour/pianoroll.cc @@ -2236,6 +2236,8 @@ Pianoroll::set_region (std::shared_ptr r) view->show_start (true); view->show_end (true); + r->DropReferences.connect (object_connections, invalidator (*this), std::bind (&Pianoroll::unset, this), gui_context()); + bool provided = false; std::shared_ptr map; std::shared_ptr smf (std::dynamic_pointer_cast (r->midi_source()));