Populate the buffer size combo when connecting to jack that is already running.
authorTodd Naugle <toddn@harrisonconsoles.com>
Thu, 10 Aug 2017 14:49:22 +0000 (09:49 -0500)
committerTodd Naugle <toddn@harrisonconsoles.com>
Thu, 10 Aug 2017 14:49:22 +0000 (09:49 -0500)
This would crash (throw) if ardour was started with an invalid backend
(alsa with no devices avaliable) and then changec to an alredy running
jack. The invalid backend at the start would leave the buffer
size combo empty and switching to the running jack backend did not populate
buffer size list.

gtk2_ardour/engine_dialog.cc

index 9475d39ec29efcbfcb4b972899339c794b13ccd4..3939fec8cb3541ace7f54052a5e8e6818f44ab18 100644 (file)
@@ -1032,6 +1032,7 @@ EngineControl::backend_changed ()
 
        if (!_have_control) {
                // set settings from backend that we do have control over
+               set_buffersize_popdown_strings ();
                set_active_text_if_present (buffer_size_combo, bufsize_as_string (backend->buffer_size()));
        }