From efb1e10ff7ea68f229cf7766fd05623683dc2a6b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 7 Feb 2012 18:28:09 +0000 Subject: [PATCH] fix coloring of global rec-enable button when actively recording; fix related issue when loading a session with an already rec-enabled track git-svn-id: svn://localhost/ardour2/branches/3.0@11468 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 2 +- libs/ardour/session_state.cc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 306d0c2482..77de24263a 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2389,7 +2389,7 @@ ARDOUR_UI::transport_rec_enable_blink (bool onoff) rec_button.set_active_state (Gtkmm2ext::ImplicitActive); } } else if (r == Session::Recording && h) { - rec_button.set_active_state (Gtkmm2ext::ImplicitActive); + rec_button.set_active_state (Gtkmm2ext::ExplicitActive); } else { rec_button.unset_active_state (); } diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 3c7ec0f780..59d465a3ef 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1431,6 +1431,8 @@ Session::set_state (const XMLNode& node, int version) ControlProtocolManager::instance().set_protocol_states (*child); } + update_have_rec_enabled_track (); + /* here beginneth the second phase ... */ StateReady (); /* EMIT SIGNAL */