From 0e824cce0b065a0bd850a8be364928e17b91a038 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 28 Jan 2024 21:59:14 +0100 Subject: [PATCH] Fix gtk-critical message when monitor section is not present --- gtk2_ardour/mixer_ui.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 8401196e48..7a3f42dd00 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -1862,7 +1862,9 @@ Mixer_UI::redisplay_track_list () if (_surround_strip) { out_packer.reorder_child (*_surround_strip, -1); } - out_packer.reorder_child (_monitor_section.tearoff(), -1); + if (_monitor_section.tearoff ().get_parent ()) { + out_packer.reorder_child (_monitor_section.tearoff(), -1); + } } void