Fix state restoration in Engine dialog for Backends with driver selection
authorTim Mayberry <mojofunk@gmail.com>
Wed, 29 Jul 2015 05:46:26 +0000 (15:46 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Thu, 30 Jul 2015 23:59:53 +0000 (09:59 +1000)
commit2437bbbe2315a4f9991874ea8baa5d91230bc139
tree5a922187630892e640978ecd1d730f14d83a87f1
parentb2817bfac5499e77066817f83cccd0e206b6d20f
Fix state restoration in Engine dialog for Backends with driver selection

Connect to the backend_combo changed signal after setting state as calling
backend_combo.set_active_text() in set_state was triggering backend_changed(),
which would then see the driver_combo had not been set and set it to the
incorrect value.

The value/name of the backend needs to be restored first then we can populate
the driver combo and set the correct active entry from the saved state. After
which backend_changed() will populate the device combo's etc so they can then
be set to the correct active values from the saved state.
gtk2_ardour/engine_dialog.cc
gtk2_ardour/engine_dialog.h