summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-21 22:05:14 +0000
committerDavid Robillard <d@drobilla.net>2008-12-21 22:05:14 +0000
commit35e0a71bb04d435e858c9b1cbd087c63c3d5e781 (patch)
tree3d2f88c9e2b179b39e98a269b751ec5882718113 /src
parent7c203c5ddcddd451b0656ee6c9cd0206b17782f0 (diff)
downloadingen-35e0a71bb04d435e858c9b1cbd087c63c3d5e781.tar.gz
ingen-35e0a71bb04d435e858c9b1cbd087c63c3d5e781.tar.bz2
ingen-35e0a71bb04d435e858c9b1cbd087c63c3d5e781.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/gui/PatchTreeWindow.cpp8
1 files changed, 7 insertions, 1 deletions
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<PatchModel> 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()));
}