Fix state restoration in EngineControl dialog for backends with driver selection
[ardour.git] / gtk2_ardour / engine_dialog.h
index 59b209449962fbf9af0e341b08f50e8987d64dad..7bc0b59a3030c57a432a645b102d2ef637568b86 100644 (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;