13
0

fix external sync source configuration.

git-svn-id: svn://localhost/ardour2/branches/3.0@13782 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2013-01-05 10:40:07 +00:00
parent 97a6682647
commit 9a60d79c17
2 changed files with 3 additions and 3 deletions

View File

@ -69,6 +69,8 @@ when the pull up/down setting is non-zero."));
}
}
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::set_external_sync), sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
/* activating a slave is a session-property.
* The slave type is a RC property.
* When the slave is active is must not be reconfigured.
@ -79,8 +81,6 @@ when the pull up/down setting is non-zero."));
* status changed:
*/
Config->ParameterChanged("sync-source");
ActionManager::toggle_config_state_foo ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::set_external_sync), sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
}
}

View File

@ -1812,7 +1812,7 @@ RCOptionEditor::parameter_changed (string const & p)
} else if (p == "sync-source") {
_sync_source->set_sensitive (true);
if (_session) {
_sync_source->set_sensitive (_session->config.get_external_sync());
_sync_source->set_sensitive (!_session->config.get_external_sync());
}
switch(Config->get_sync_source()) {
case ARDOUR::MTC: