Fix crash at session close

see also 6672db97. in theory re-assigning a sigc::connection
should disconnect the previous connection, but for yet
unknown reasons this does no happen here.
This commit is contained in:
Robin Gareus
2025-08-18 23:08:50 +02:00
parent a22a84cbee
commit 06a2b174dd

View File

@@ -1409,6 +1409,7 @@ Pianoroll::set_trigger (TriggerReference & tref)
trigger->PropertyChanged.connect (object_connections, invalidator (*this), std::bind (&Pianoroll::trigger_prop_change, this, _1), gui_context());
trigger->ArmChanged.connect (object_connections, invalidator (*this), std::bind (&Pianoroll::trigger_arm_change, this), gui_context());
_update_connection.disconnect ();
_update_connection = Timers::rapid_connect (sigc::mem_fun (*this, &CueEditor::maybe_update));
if (trigger) {
@@ -1515,6 +1516,7 @@ Pianoroll::set_region (std::shared_ptr<ARDOUR::Region> region)
bg->display_region (*view);
_update_connection.disconnect ();
_update_connection = Timers::rapid_connect (sigc::mem_fun (*this, &Pianoroll::maybe_update));
maybe_set_from_rsu ();