summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-12 01:00:52 +0000
committerDavid Robillard <d@drobilla.net>2006-09-12 01:00:52 +0000
commit23b7568ab7a87a79c186b8ddf3d3db4f1f934b06 (patch)
tree84ac925d65c940cc42fc88219758d7fc096f9dd4 /src/libs/client/PatchModel.cpp
parent16c866f220847ae23012318d2c1a5023076ab5fa (diff)
downloadingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.tar.gz
ingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.tar.bz2
ingen-23b7568ab7a87a79c186b8ddf3d3db4f1f934b06.zip
Bug fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@130 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.cpp')
-rw-r--r--src/libs/client/PatchModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp
index 68a55b40..a65f1c49 100644
--- a/src/libs/client/PatchModel.cpp
+++ b/src/libs/client/PatchModel.cpp
@@ -129,6 +129,7 @@ PatchModel::remove_node(CountedPtr<NodeModel> nm)
assert(i->second == nm);
m_nodes.erase(i);
removed_node_sig.emit(nm->path().name());
+ i->second->parent().reset();
return;
}
@@ -146,6 +147,7 @@ PatchModel::remove_node(const string& name)
//delete i->second;
m_nodes.erase(i);
removed_node_sig.emit(name);
+ i->second->parent().reset();
return;
}