diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-18 03:17:07 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-18 03:17:07 +0000 |
commit | f9d0879e868cfab2e8ebd25803bdfa14a3f70426 (patch) | |
tree | 7170b4c470d651f57e2a5e842fef60ede4847e5b /gtk2_ardour/ardour_ui.cc | |
parent | 0d34f2487d8b405dd0f2117092e091f49e94447a (diff) |
Plugin UI state should of course be saved per-session rather than globally.
git-svn-id: svn://localhost/ardour2/branches/3.0@7646 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 837dfd9ba2..2cf6c8aaae 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2100,6 +2100,16 @@ ARDOUR_UI::snapshot_session (bool switch_to_it) void ARDOUR_UI::save_state (const string & name, bool switch_to_it) { + XMLNode* node = new XMLNode (X_("UI")); + + for (list<WindowProxyBase*>::iterator i = _window_proxies.begin(); i != _window_proxies.end(); ++i) { + if (!(*i)->rc_configured()) { + node->add_child_nocopy (*((*i)->get_state ())); + } + } + + _session->add_extra_xml (*node); + save_state_canfail (name, switch_to_it); } |