The traditional LAC2007 final dinner fix. This fix was written in a 24/7

bar/cafe in Berlin at 02:40AM . Thanks to Pau for the bug report.

Oh yeah, it fixes crashes when removing inserts which had a gui 
instantiated.


git-svn-id: svn://localhost/ardour2/trunk@1639 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2007-03-26 19:12:39 +00:00
parent ee9f39ed3c
commit cda841a40e

View file

@ -778,14 +778,15 @@ PortInsertWindow::PortInsertWindow (Session& sess, boost::shared_ptr<PortInsert>
rescan_button.signal_clicked().connect (mem_fun(*this, &PortInsertWindow::rescan));
signal_delete_event().connect (bind (sigc::ptr_fun (just_hide_it), reinterpret_cast<Window *> (this)));
pi->GoingAway.connect (mem_fun(*this, &PortInsertWindow::plugin_going_away));
going_away_connection = pi->GoingAway.connect (mem_fun(*this, &PortInsertWindow::plugin_going_away));
}
void
PortInsertWindow::plugin_going_away ()
{
ENSURE_GUI_THREAD(mem_fun(*this, &PortInsertWindow::plugin_going_away));
going_away_connection.disconnect ();
delete_when_idle (this);
}