diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-23 19:51:17 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-23 21:58:56 +0100 |
commit | 2d87af198868aa9f41338569947d95f6f0185e6e (patch) | |
tree | fdc253e14aa3d981805fd10c5ba7a9726aa858ee /gtk2_ardour/engine_dialog.cc | |
parent | 217ef4d365136c9396375acf12a4805c70b2557c (diff) |
Engine-dialog: skip audio device update when running
Only update MIDI devices list, which can be dynamic. Audio devices
which are in-use can't be updated, and the GUI may no longer show
the current device (since it is in use).
Diffstat (limited to 'gtk2_ardour/engine_dialog.cc')
-rw-r--r-- | gtk2_ardour/engine_dialog.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index 1389e815ef..b883bc352e 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -3098,7 +3098,9 @@ EngineControl::device_list_changed () return; } PBD::Unwinder<uint32_t> protect_ignore_changes (ignore_changes, ignore_changes + 1); // ?? - list_devices (); + if (!ARDOUR::AudioEngine::instance()->running()) { + list_devices (); + } midi_option_changed(); } |