Populate the buffer size combo when connecting to jack that is already running.

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.
This commit is contained in:
Todd Naugle 2017-08-10 09:49:22 -05:00
parent d2d660521e
commit d4a089937b
1 changed files with 1 additions and 0 deletions

View 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()));
}