13
0

Ruler Marker: watch for -my- location cue-id to change

This commit is contained in:
Ben Loftis 2022-01-21 10:07:48 -06:00
parent c9b5db6dee
commit 48c5974b2b

View File

@ -181,6 +181,7 @@ Editor::add_new_location_internal (Location* location)
}
location->NameChanged.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, location), gui_context());
location->CueChanged.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, location), gui_context());
location->TimeDomainChanged.connect (*this, invalidator (*this), boost::bind (&Editor::location_changed, this, location), gui_context());
location->FlagsChanged.connect (*this, invalidator (*this), boost::bind (&Editor::location_flags_changed, this, location), gui_context());
@ -227,6 +228,10 @@ Editor::location_changed (Location *location)
lam->set_name (location->name ());
}
if (location->is_cue_marker()) {
lam->start->set_cue_index (location->cue_id());
}
lam->set_position (location->start(), location->end());
if (location->is_auto_loop()) {