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:
Paul Davis 2007-02-28 01:19:56 +00:00
parent bf0fac039e
commit 4f460078b8
2 changed files with 12 additions and 1 deletions

View file

@ -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")) {

View file

@ -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 {