diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-29 11:15:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-29 11:15:40 +0000 |
commit | aff6cb836d3233168c26176e0bea3cea289b5588 (patch) | |
tree | 55d6b64a254c18dc7a65294edddde26c1848773d /gtk2_ardour/ardour_ui.cc | |
parent | 3150041423a199189c9b6ab292a078c51d9670c2 (diff) |
Give new sessions the default GUI state. Fixes #3423.
git-svn-id: svn://localhost/ardour2/branches/3.0@7708 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 71644109c3..8eacd1904b 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2762,6 +2762,10 @@ ARDOUR_UI::build_session (const Glib::ustring& path, const Glib::ustring& snap_n return -1; } + /* Give the new session the default GUI state */ + new_session->add_instant_xml (*Config->instant_xml (X_("Editor")), false); + new_session->add_instant_xml (*Config->instant_xml (X_("Mixer")), false); + set_session (new_session); session_loaded = true; @@ -3172,7 +3176,7 @@ ARDOUR_UI::editor_settings () const } else { node = Config->instant_xml(X_("Editor")); } - + if (!node) { if (getenv("ARDOUR_INSTANT_XML_PATH")) { node = Config->instant_xml(getenv("ARDOUR_INSTANT_XML_PATH")); |