summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-16 00:29:49 +0100
committerRobin Gareus <robin@gareus.org>2015-12-16 00:29:49 +0100
commit38ef9ae0ef4570c1354d1a8f6666c873ac876dfa (patch)
treee65f00fec538cb19d97cd615733045ea7b59406c
parentb228c1131187f3822ece3bd6ed26869a68fb0dff (diff)
update available sync-sources when engine [re]-starts
fixes issue with JACK only being available if Ardour was started with JACK.
-rw-r--r--gtk2_ardour/rc_option_editor.cc3
-rw-r--r--gtk2_ardour/rc_option_editor.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index efaccc7be6..3d26e68f08 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -2019,6 +2019,7 @@ RCOptionEditor::RCOptionEditor ()
_ltc_port->set_popdown_strings (physical_inputs);
populate_sync_options ();
+ AudioEngine::instance()->Running.connect (engine_started_connection, MISSING_INVALIDATOR, boost::bind (&RCOptionEditor::populate_sync_options, this), gui_context());
add_option (_("Transport"), _ltc_port);
@@ -3224,4 +3225,6 @@ RCOptionEditor::populate_sync_options ()
_rc_config->set_sync_source(sync_opts.front());
}
}
+
+ parameter_changed ("sync-source");
}
diff --git a/gtk2_ardour/rc_option_editor.h b/gtk2_ardour/rc_option_editor.h
index 8b46947dce..1b543e3aaf 100644
--- a/gtk2_ardour/rc_option_editor.h
+++ b/gtk2_ardour/rc_option_editor.h
@@ -56,6 +56,7 @@ private:
BoolOption* _ltc_send_continuously;
PBD::ScopedConnection parameter_change_connection;
+ PBD::ScopedConnection engine_started_connection;
/* plugin actions */
void plugin_scan_refresh ();