From 35e0a71bb04d435e858c9b1cbd087c63c3d5e781 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Dec 2008 22:05:14 +0000 Subject: Remove destroyed patches from patch tree window (fix ticket #311). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1893 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchTreeWindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/PatchTreeWindow.cpp b/src/gui/PatchTreeWindow.cpp index cf422409..15c33550 100644 --- a/src/gui/PatchTreeWindow.cpp +++ b/src/gui/PatchTreeWindow.cpp @@ -110,7 +110,13 @@ PatchTreeWindow::add_patch(SharedPtr pm) } } - pm->signal_property.connect(sigc::bind(sigc::mem_fun(this, &PatchTreeWindow::patch_property_changed), pm->path())); + pm->signal_property.connect(sigc::bind( + sigc::mem_fun(this, &PatchTreeWindow::patch_property_changed), + pm->path())); + + pm->signal_destroyed.connect(sigc::bind( + sigc::mem_fun(this, &PatchTreeWindow::remove_patch), + pm->path())); } -- cgit v1.2.1