summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-08-10 23:20:07 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-08-11 09:24:53 +1000
commitab7cf8c7a746b71a55cfd2e87340008875f236aa (patch)
treeae77ef1376f84df8406be35e8d850c5734097472 /gtk2_ardour/engine_dialog.h
parentc165c991ca0bdba64564f2723daf98d0e726671a (diff)
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
Diffstat (limited to 'gtk2_ardour/engine_dialog.h')
-rw-r--r--gtk2_ardour/engine_dialog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/engine_dialog.h b/gtk2_ardour/engine_dialog.h
index 59b2094499..7bc0b59a30 100644
--- a/gtk2_ardour/engine_dialog.h
+++ b/gtk2_ardour/engine_dialog.h
@@ -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;