summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-07-29 15:46:26 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-07-31 09:59:53 +1000
commit2437bbbe2315a4f9991874ea8baa5d91230bc139 (patch)
tree5a922187630892e640978ecd1d730f14d83a87f1 /gtk2_ardour/engine_dialog.h
parentb2817bfac5499e77066817f83cccd0e206b6d20f (diff)
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.
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r--gtk2_ardour/engine_dialog.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h
index 1ca9937324..4d7d54163c 100644
--- a/gtk2_ardour/engine_dialog.h
+++ b/gtk2_ardour/engine_dialog.h
@@ -152,6 +152,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
void device_changed ();
void input_device_changed ();
void output_device_changed ();
+ bool set_driver_popdown_strings ();
bool set_device_popdown_strings ();
bool set_input_device_popdown_strings ();
bool set_output_device_popdown_strings ();