diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-13 16:38:08 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-13 16:39:26 -0400 |
commit | dc43189c7e014a8295bdf442c8ca4e91d0c9287f (patch) | |
tree | 5f7fd70086ee3a487df45e10081c81d543380550 /gtk2_ardour/ardour_ui.cc | |
parent | 7a1084d349fbc92126d491163da5ebd7ade52237 (diff) |
fix save/restore of preferences torn-off-window state
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 2c27c8db7c..96df17a5f9 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3574,6 +3574,11 @@ ARDOUR_UI::build_session (const std::string& path, const std::string& snap_name, new_session->add_instant_xml (*n, false); } + n = Config->instant_xml (X_("Preferences")); + if (n) { + new_session->add_instant_xml (*n, false); + } + /* Put the playhead at 0 and scroll fully left */ n = new_session->instant_xml (X_("Editor")); if (n) { @@ -4545,6 +4550,24 @@ ARDOUR_UI::export_video (bool range) } XMLNode* +ARDOUR_UI::preferences_settings () const +{ + XMLNode* node = 0; + + if (_session) { + node = _session->instant_xml(X_("Preferences")); + } else { + node = Config->instant_xml(X_("Preferences")); + } + + if (!node) { + node = new XMLNode (X_("Preferences")); + } + + return node; +} + +XMLNode* ARDOUR_UI::mixer_settings () const { XMLNode* node = 0; |