From 05184054322105ee841e0ca6ad2b825a861cb8fe Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 10 May 2024 15:12:01 +0200 Subject: [PATCH] L: prevent crash at shutdown (amend f74dbbeb252) --- gtk2_ardour/ardour_ui_ed.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index f26c6bb508..ac5d8e516e 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -998,7 +998,7 @@ ARDOUR_UI::save_ardour_state () } main_window_node.set_property (X_("current-tab"), current_tab); -#endif + /* Windows */ @@ -1011,6 +1011,7 @@ ARDOUR_UI::save_ardour_state () tearoff_node->add_child_nocopy (*t); window_node->add_child_nocopy (*tearoff_node); +#endif /* store clock modes */ XMLNode* cnode = new XMLNode(X_("ClockModes")); @@ -1027,7 +1028,9 @@ ARDOUR_UI::save_ardour_state () Config->save_state(); - mixer->save_plugin_order_file(); + if (mixer) { + mixer->save_plugin_order_file(); + } UIConfiguration::instance().save_state ();