summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2012-10-16 23:04:00 +0000
committerRobin Gareus <robin@gareus.org>2012-10-16 23:04:00 +0000
commit8427901b6aa1ab14773ca41d3f249a7acbf944ba (patch)
tree13e9e63280991da2fbd1ae45531a8d293f1d8679 /gtk2_ardour/rc_option_editor.cc
parent99a177da841547f049f1571dc1fd46b7b9c41a77 (diff)
enable sync genlock & setFPS option for both MTC & LTC
git-svn-id: svn://localhost/ardour2/branches/3.0@13293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index c889962158..52ef644339 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -1725,12 +1725,16 @@ RCOptionEditor::parameter_changed (string const & p)
_solo_control_is_listen_control->set_sensitive (s);
_listen_position->set_sensitive (s);
} else if (p == "sync-source") {
- if (Config->get_sync_source() != ARDOUR::MTC) {
- _sync_genlock->set_sensitive (false);
- _sync_framerate->set_sensitive (false);
- } else {
+ switch(Config->get_sync_source()) {
+ case ARDOUR::MTC:
+ case ARDOUR::LTC:
_sync_genlock->set_sensitive (true);
_sync_framerate->set_sensitive (true);
+ break;
+ default:
+ _sync_genlock->set_sensitive (false);
+ _sync_framerate->set_sensitive (false);
+ break;
}
}
}