diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-06 16:56:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-09-06 16:56:51 -0400 |
commit | 835b874e1e0a211659563646af5f91e0d3fdab8d (patch) | |
tree | 06ed0452df11c9cf4e38d5228e6a48755a93bb74 /gtk2_ardour/ardour_ui.cc | |
parent | 73fe0e4b97df72b64e8dd4614d6257815e8e4080 (diff) |
add ActionManager::rec_sensitive_actions and put "add track/bus" in this group, which is disabled during active recording
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a53bcf167f..ee7d40ffab 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -4982,16 +4982,21 @@ ARDOUR_UI::record_state_changed () { ENSURE_GUI_THREAD (*this, &ARDOUR_UI::record_state_changed); - if (!_session || !big_clock_window) { + if (!_session) { /* why bother - the clock isn't visible */ return; } - if (_session->record_status () == Session::Recording && _session->have_rec_enabled_track ()) { - big_clock->set_active (true); - } else { - big_clock->set_active (false); + ActionManager::set_sensitive (ActionManager::rec_sensitive_actions, !_session->actively_recording()); + + if (big_clock_window) { + if (_session->record_status () == Session::Recording && _session->have_rec_enabled_track ()) { + big_clock->set_active (true); + } else { + big_clock->set_active (false); + } } + } bool |