Fix mantis bug #1619; de-selecting Options->Crossfades->Show now hides all crossfades...
[ardour.git] / gtk2_ardour / send_ui.cc
index 897f5f384777f74f84130c5ca57eb4c65c532fa9..8faa3158481c1bd6b9921d272a320689392d6ad5 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #include <ardour/send.h>
@@ -97,14 +96,6 @@ SendUI::outs_changed (IOChange change, void* ignored)
        }
 }
 
-void
-SendUI::send_going_away ()
-{
-       ENSURE_GUI_THREAD (mem_fun (*this, &SendUI::send_going_away))
-
-       delete this;
-}
-
 void
 SendUI::update ()
 {
@@ -113,7 +104,7 @@ SendUI::update ()
 void
 SendUI::fast_update ()
 {
-       if (_session.meter_falloff() > 0.0f) {
+       if (Config->get_meter_falloff() > 0.0f) {
                gpm.update_meters ();
        }
 }
@@ -146,7 +137,6 @@ void
 SendUIWindow::send_going_away ()
 {
        ENSURE_GUI_THREAD (mem_fun (*this, &SendUIWindow::send_going_away));
-       
-       delete this;
+       delete_when_idle (this);
 }