From a1a3dc05ad480ee7cf25ad628b3477461f5709d7 Mon Sep 17 00:00:00 2001 From: Sakari Bergen Date: Tue, 28 Oct 2008 16:44:53 +0000 Subject: [PATCH] Save automatic saving of audio engine settings (mostly copied from 2.0-ongoing) git-svn-id: svn://localhost/ardour2/branches/3.0@4024 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 694eb9b52b..b3ac2e3db8 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -521,6 +521,9 @@ ARDOUR_UI::save_ardour_state () XMLNode* node = new XMLNode (keyboard->get_state()); Config->add_extra_xml (*node); Config->add_extra_xml (get_transport_controllable_state()); + if (new_session_dialog && new_session_dialog->engine_control.was_used()) { + Config->add_extra_xml (new_session_dialog->engine_control.get_state()); + } Config->save_state(); ui_config->save_state (); @@ -760,8 +763,7 @@ If you still wish to quit, please use the\n\n\ } engine->stop (true); - Config->save_state(); - ARDOUR_UI::config()->save_state(); + save_ardour_state (); quit (); }