summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2019-08-28 13:22:24 -0700
committerLen Ovens <len@ovenwerks.net>2019-08-28 13:23:10 -0700
commit3588712174530462a7cae5b0df64e8a1309ae533 (patch)
tree45830bc7fb311c9e942a7c680066f873b13320ee /gtk2_ardour/mixer_ui.cc
parent1d4cf8a28cf26f68e5d93b0256060d2a2443fd36 (diff)
properly remove foldback strip so it can be created again
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index f8a96fd78c..5a1690cacd 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -365,6 +365,7 @@ Mixer_UI::Mixer_UI ()
MixerStrip::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::remove_strip, this, _1), gui_context());
VCAMasterStrip::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::remove_master, this, _1), gui_context());
+ FoldbackStrip::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::remove_foldback, this, _1), gui_context());
/* handle escape */
@@ -741,6 +742,19 @@ Mixer_UI::remove_strip (MixerStrip* strip)
}
void
+Mixer_UI::remove_foldback (FoldbackStrip* strip)
+{
+ if (_session && _session->deletion_in_progress()) {
+ /* its all being taken care of */
+ return;
+ }
+ if (foldback_strip) {
+ foldback_strip->destroy_();
+ }
+ foldback_strip = 0;
+}
+
+void
Mixer_UI::presentation_info_changed (PropertyChange const & what_changed)
{
if (what_changed.contains (Properties::selected)) {