mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
fix copy-paste error and related bug that stopped new scene change from causing a marker redraw correctly
This commit is contained in:
parent
3ac3e03af4
commit
044530ff6c
1 changed files with 4 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ Marker::Marker (ARDOUR::Location* l, PublicEditor& ed, ArdourCanvas::Container&
|
|||
_location->StartChanged.connect (location_connections, invalidator(*this), boost::bind (&Marker::bounds_changed, this), gui_context());
|
||||
_location->EndChanged.connect (location_connections, invalidator(*this), boost::bind (&Marker::bounds_changed, this), gui_context());
|
||||
_location->Changed.connect (location_connections, invalidator(*this), boost::bind (&Marker::bounds_changed, this), gui_context());
|
||||
_location->SceneChangeChanged.connect (location_connections, invalidator(*this), boost::bind (&Marker::bounds_changed, this), gui_context());
|
||||
_location->SceneChangeChanged.connect (location_connections, invalidator(*this), boost::bind (&Marker::scene_change_changed, this), gui_context());
|
||||
|
||||
/* connect to scene change active signal if there is a scene change */
|
||||
connect_to_scene_change_signals ();
|
||||
|
|
@ -395,13 +395,16 @@ Marker::connect_to_scene_change_signals ()
|
|||
if (_location) {
|
||||
boost::shared_ptr<SceneChange> sc = _location->scene_change();
|
||||
if (sc) {
|
||||
_have_scene_change = true;
|
||||
sc->ActiveChanged.connect (scene_change_active_connection, invalidator(*this), boost::bind (&Marker::scene_change_active_changed, this), gui_context());
|
||||
} else {
|
||||
_have_scene_change = false;
|
||||
scene_change_active_connection.disconnect ();
|
||||
}
|
||||
} else {
|
||||
/* Not likely to happen but handle it anyway */
|
||||
scene_change_active_connection.disconnect ();
|
||||
_have_scene_change = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue