mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
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:
parent
ee9f39ed3c
commit
cda841a40e
1 changed files with 3 additions and 2 deletions
|
|
@ -778,14 +778,15 @@ PortInsertWindow::PortInsertWindow (Session& sess, boost::shared_ptr<PortInsert>
|
||||||
rescan_button.signal_clicked().connect (mem_fun(*this, &PortInsertWindow::rescan));
|
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)));
|
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
|
void
|
||||||
PortInsertWindow::plugin_going_away ()
|
PortInsertWindow::plugin_going_away ()
|
||||||
{
|
{
|
||||||
ENSURE_GUI_THREAD(mem_fun(*this, &PortInsertWindow::plugin_going_away));
|
ENSURE_GUI_THREAD(mem_fun(*this, &PortInsertWindow::plugin_going_away));
|
||||||
|
going_away_connection.disconnect ();
|
||||||
delete_when_idle (this);
|
delete_when_idle (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue