From 07759bbbf28e949ed1f7894d843fe0ec9da70b6d Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 19 Jun 2014 19:42:46 +0200 Subject: [PATCH] engine-dialog: properly restore previous active state --- gtk2_ardour/engine_dialog.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/engine_dialog.cc b/gtk2_ardour/engine_dialog.cc index a89ddddb1a..9976208895 100644 --- a/gtk2_ardour/engine_dialog.cc +++ b/gtk2_ardour/engine_dialog.cc @@ -273,11 +273,15 @@ EngineControl::EngineControl () ARDOUR::AudioEngine::instance()->Stopped.connect (stopped_connection, MISSING_INVALIDATOR, boost::bind (&EngineControl::engine_stopped, this), gui_context()); ARDOUR::AudioEngine::instance()->Halted.connect (stopped_connection, MISSING_INVALIDATOR, boost::bind (&EngineControl::engine_stopped, this), gui_context()); + if (audio_setup) { + set_state (*audio_setup); + } + { + /* ignore: don't save state */ PBD::Unwinder protect_ignore_changes (ignore_changes, ignore_changes + 1); backend_changed (); } - maybe_display_saved_state(); /* Connect to signals */ @@ -292,10 +296,6 @@ EngineControl::EngineControl () input_channels.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::parameter_changed)); output_channels.signal_changed().connect (sigc::mem_fun (*this, &EngineControl::parameter_changed)); - if (audio_setup) { - set_state (*audio_setup); - } - notebook.signal_switch_page().connect (sigc::mem_fun (*this, &EngineControl::on_switch_page)); }