Don't unset CueEditor:_track when changing regions.

CueEditor::catch_pending_show_region() calls ::set_region
which calls CueEditor::unset(false). This reset _track.

Also PianorollWindow::set() calls set_track() before set_region(),
the latter also reset CueEditor::_track.

This fixes the Solo button in the Pianoroll window, and
probably some other things, too.
This commit is contained in:
Robin Gareus
2025-09-09 01:25:33 +02:00
parent c32106600a
commit 5d9d367cde

View File

@@ -1471,11 +1471,14 @@ CueEditor::unset (bool trigger_too)
count_in_connection.disconnect ();
capture_connections.drop_connections ();
_track.reset ();
_region.reset ();
if (trigger_too) {
ref = TriggerReference ();
_track.reset ();
} else if (_track) {
/* re-subscribe to object_connections */
set_track (_track);
}
}