Fix state restoration in EngineControl dialog for backends with driver selection

This also prevents backend_changed from being called more that once in the
EngineControl ctor
This commit is contained in:
Tim Mayberry 2015-08-10 23:20:07 +10:00
parent c165c991ca
commit ab7cf8c7a7
2 changed files with 100 additions and 24 deletions

View file

@ -46,7 +46,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
static bool need_setup ();
XMLNode& get_state ();
void set_state (const XMLNode&);
bool set_state (const XMLNode&);
void set_desired_sample_rate (uint32_t);
@ -237,7 +237,8 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
void store_state (State);
bool equivalent_states (const State&, const State&);
void set_current_state (const State& state);
bool set_current_state (const State& state);
void set_default_state ();
bool _have_control;