diff options
author | Robin Gareus <robin@gareus.org> | 2017-01-28 12:04:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-01-28 12:05:50 +0100 |
commit | 0092442a64f4216707b8368e895fc8a353c05da1 (patch) | |
tree | e4e84900666df8c4322aa6810c99a3811a58c23e /gtk2_ardour/ardour_ui2.cc | |
parent | 487ae583017a1e60ae5c7e47c3e9863eb433e31e (diff) |
mark loop button insensitive when there's no loop-range
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui2.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index a5b1a93e93..c264c2c1c6 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -848,7 +848,15 @@ ARDOUR_UI::error_blink (bool onoff) } } - +void +ARDOUR_UI::set_loop_sensitivity () +{ + if (!_session || _session->config.get_external_sync()) { + auto_loop_button.set_sensitive (false); + } else { + auto_loop_button.set_sensitive (_session && _session->locations()->auto_loop_location()); + } +} void ARDOUR_UI::set_transport_sensitivity (bool yn) |