mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
[Summary] Fixed bug with session::update_route_active_state
[Reviewed] GZharun
This commit is contained in:
parent
12e885ef83
commit
e263f8a080
3 changed files with 10 additions and 5 deletions
|
|
@ -1615,7 +1615,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
|
|||
|
||||
mutable bool have_looped; ///< Used in ::audible_frame(*)
|
||||
|
||||
void update_have_rec_enabled_track ();
|
||||
void update_route_active_state ();
|
||||
gint _have_rec_enabled_track;
|
||||
gint _have_rec_disabled_track;
|
||||
|
||||
|
|
|
|||
|
|
@ -2774,6 +2774,8 @@ Session::add_routes (RouteList& new_routes, bool input_auto_connect, bool output
|
|||
|
||||
reassign_track_numbers();
|
||||
|
||||
update_route_active_state ();
|
||||
|
||||
RouteAdded (new_routes); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
|
|
@ -2840,7 +2842,7 @@ Session::add_routes_inner (RouteList& new_routes, bool input_auto_connect, bool
|
|||
|
||||
tr->PlaylistChanged.connect_same_thread (*this, boost::bind (&Session::track_playlist_changed, this, boost::weak_ptr<Track> (tr)));
|
||||
track_playlist_changed (boost::weak_ptr<Track> (tr));
|
||||
tr->RecordEnableChanged.connect_same_thread (*this, boost::bind (&Session::update_have_rec_enabled_track, this));
|
||||
tr->RecordEnableChanged.connect_same_thread (*this, boost::bind (&Session::update_route_active_state, this));
|
||||
|
||||
boost::shared_ptr<MidiTrack> mt = boost::dynamic_pointer_cast<MidiTrack> (tr);
|
||||
if (mt) {
|
||||
|
|
@ -3210,6 +3212,8 @@ Session::remove_route (boost::shared_ptr<Route> route)
|
|||
save_history (_current_snapshot_name);
|
||||
}
|
||||
reassign_track_numbers();
|
||||
|
||||
update_route_active_state ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -5169,7 +5173,7 @@ Session::have_rec_disabled_track () const
|
|||
|
||||
/** Update the state of our rec-enabled tracks flag */
|
||||
void
|
||||
Session::update_have_rec_enabled_track ()
|
||||
Session::update_route_active_state ()
|
||||
{
|
||||
boost::shared_ptr<RouteList> rl = routes.reader ();
|
||||
RouteList::iterator i = rl->begin();
|
||||
|
|
@ -5246,7 +5250,8 @@ Session::route_added_to_route_group (RouteGroup* rg, boost::weak_ptr<Route> r)
|
|||
void
|
||||
Session::route_removed_from_route_group (RouteGroup* rg, boost::weak_ptr<Route> r)
|
||||
{
|
||||
RouteRemovedFromRouteGroup (rg, r);
|
||||
update_route_active_state ();
|
||||
RouteRemovedFromRouteGroup (rg, r); /* EMIT SIGNAL */
|
||||
}
|
||||
|
||||
boost::shared_ptr<RouteList>
|
||||
|
|
|
|||
|
|
@ -1361,7 +1361,7 @@ Session::set_state (const XMLNode& node, int version)
|
|||
ControlProtocolManager::instance().set_state (*child, version);
|
||||
}
|
||||
|
||||
update_have_rec_enabled_track ();
|
||||
update_route_active_state ();
|
||||
|
||||
/* here beginneth the second phase ... */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue