-void
-Mixer_UI::monitor_section_going_away ()
-{
- /* Set sensitivity based on existence of the monitor bus */
-
- set_monitor_action_sensitivity(false);
-
- if (_monitor_section) {
-
- XMLNode* ui_node = Config->extra_xml(X_("UI"));
- /* immediate state save.
- *
- * Tearoff settings are otherwise only stored during
- * save_ardour_state(). The mon-section may or may not
- * exist at that point.
- * */
- if (ui_node) {
- XMLNode* tearoff_node = ui_node->child (X_("Tearoffs"));
- if (tearoff_node) {
- tearoff_node->remove_nodes_and_delete (X_("monitor-section"));
- XMLNode* t = new XMLNode (X_("monitor-section"));
- _monitor_section->tearoff().add_state (*t);
- tearoff_node->add_child_nocopy (*t);
- }
+ if (ui_node) {
+ XMLNode* tearoff_node = ui_node->child (X_("Tearoffs"));
+ if (tearoff_node) {
+ tearoff_node->remove_nodes_and_delete (X_("monitor-section"));
+ XMLNode* t = new XMLNode (X_("monitor-section"));
+ _monitor_section.tearoff().add_state (*t);
+ tearoff_node->add_child_nocopy (*t);