desensitize auto-play button on slave != None and ignore auto-play in libardour if slave != None
git-svn-id: svn://localhost/ardour2/trunk@1530 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -822,6 +822,17 @@ ARDOUR_UI::parameter_changed (const char* parameter_name)
|
||||
if (PARAM_IS ("slave-source")) {
|
||||
|
||||
sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
|
||||
|
||||
switch (Config->get_slave_source()) {
|
||||
case None:
|
||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* XXX need to make auto-play is off as well as insensitive */
|
||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
|
||||
break;
|
||||
}
|
||||
|
||||
} else if (PARAM_IS ("send-mtc")) {
|
||||
|
||||
|
||||
@@ -924,7 +924,7 @@ Session::post_transport ()
|
||||
|
||||
if (post_transport_work & PostTransportLocate) {
|
||||
|
||||
if ((Config->get_auto_play() && !_exporting) || (post_transport_work & PostTransportRoll)) {
|
||||
if (((Config->get_slave_source() == None && Config->get_auto_play()) && !_exporting) || (post_transport_work & PostTransportRoll)) {
|
||||
start_transport ();
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user