diff options
author | David Robillard <d@drobilla.net> | 2008-12-21 22:05:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-21 22:05:14 +0000 |
commit | 35e0a71bb04d435e858c9b1cbd087c63c3d5e781 (patch) | |
tree | 3d2f88c9e2b179b39e98a269b751ec5882718113 | |
parent | 7c203c5ddcddd451b0656ee6c9cd0206b17782f0 (diff) | |
download | ingen-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
-rw-r--r-- | src/gui/PatchTreeWindow.cpp | 8 |
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())); } |