summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_options.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-10 12:47:08 +0100
committerRobin Gareus <robin@gareus.org>2015-12-10 12:47:08 +0100
commit939808a712c448140db9d384f17075d4d7fe82db (patch)
treeaaef16acdf3790b87036b22fec62835784dc43fc /gtk2_ardour/ardour_ui_options.cc
parent7409d5f2242c6926b25301a3bd9f6de4c7f8a61d (diff)
disable loop when using external sync
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r--gtk2_ardour/ardour_ui_options.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc
index fa13c98699..34f9ce31c0 100644
--- a/gtk2_ardour/ardour_ui_options.cc
+++ b/gtk2_ardour/ardour_ui_options.cc
@@ -321,8 +321,14 @@ ARDOUR_UI::parameter_changed (std::string p)
ActionManager::get_action ("Transport", "ToggleFollowEdits")->set_sensitive (true);
} else {
sync_button.set_text (sync_source_to_string (Config->get_sync_source(), true));
+ if (_session && _session->locations()->auto_loop_location()) {
+ // disable looping with external sync.
+ // This is not necessary because session-transport ignores the loop-state,
+ // but makes it clear to the user that it's disabled.
+ toggle_session_auto_loop();
+ }
auto_loop_button.set_sensitive (false);
- /* XXX need to make auto-play is off as well as insensitive */
+ /* XXX we need to make sure that auto-play is off as well as insensitive */
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (false);
ActionManager::get_action ("Transport", "ToggleFollowEdits")->set_sensitive (false);