Allow direct trigger -> trigger selection changes

Previously there were two signals for a ::set()
1. Clear Selection -> Emit Signal
2. Select TriggerEntry -> Emit Signal

As result the Trigger Patch Selector was reset and hidden at (1),
only to be set and presented again at (2).

This should perhaps be done for other ::set() calls as well.
This commit is contained in:
Robin Gareus 2022-02-09 21:09:01 +01:00
parent 42df6be0fa
commit a309f237f2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 13 additions and 1 deletions

View File

@ -1704,8 +1704,20 @@ Selection::selected (TriggerEntry* te) const
void
Selection::set (TriggerEntry* te)
{
#if 0
clear();
clear_triggers ();
#else
clear_tracks ();
clear_regions ();
clear_points ();
clear_lines ();
clear_time ();
clear_playlists ();
clear_midi_notes ();
clear_markers ();
pending_midi_note_selection.clear();
#endif
clear_triggers (te ? false: true); /* Do not emit signal here, add() emits signal */
add (te);
}