handle deletion of UI objects between the time that a callback is queued with the...
[ardour.git] / gtk2_ardour / crossfade_view.cc
index a861ba8e9ec10150ab8f9d812bbae57130e06fb9..d4f0f5af08862e7b70633e775e00aba2d2696b98 100644 (file)
@@ -87,7 +87,7 @@ CrossfadeView::CrossfadeView (ArdourCanvas::Group *parent,
        all_crossfade_properties.add (ARDOUR::Properties::follow_overlap);
        crossfade_changed (all_crossfade_properties);
 
-       crossfade->PropertyChanged.connect (*this, ui_bind (&CrossfadeView::crossfade_changed, this, _1), gui_context());
+       crossfade->PropertyChanged.connect (*this, invalidator (*this), ui_bind (&CrossfadeView::crossfade_changed, this, _1), gui_context());
        ColorsChanged.connect (sigc::mem_fun (*this, &CrossfadeView::color_handler));
 }