diff options
author | David Robillard <d@drobilla.net> | 2006-06-12 17:57:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-12 17:57:01 +0000 |
commit | 0f86e6b4544aa89c59a1361bbe837f4b3bd5bd66 (patch) | |
tree | ed40d5df599d165a55e774d1ce99a94e4d18b9e3 /src/progs/gtk | |
parent | e3600c6bd795fabff12faa4352bf3ba76b324222 (diff) | |
download | ingen-0f86e6b4544aa89c59a1361bbe837f4b3bd5bd66.tar.gz ingen-0f86e6b4544aa89c59a1361bbe837f4b3bd5bd66.tar.bz2 ingen-0f86e6b4544aa89c59a1361bbe837f4b3bd5bd66.zip |
Fixed engine-side node destruction bug
git-svn-id: http://svn.drobilla.net/lad/grauph@34 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk')
-rw-r--r-- | src/progs/gtk/PatchController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/progs/gtk/PatchController.cpp b/src/progs/gtk/PatchController.cpp index 606cc65b..10f2f639 100644 --- a/src/progs/gtk/PatchController.cpp +++ b/src/progs/gtk/PatchController.cpp @@ -71,6 +71,7 @@ PatchController::PatchController(CountedPtr<PatchModel> model) }*/ model->new_node_sig.connect(sigc::mem_fun(this, &PatchController::add_node)); + model->removed_node_sig.connect(sigc::mem_fun(this, &PatchController::remove_node)); model->new_connection_sig.connect(sigc::mem_fun(this, &PatchController::connection)); model->removed_connection_sig.connect(sigc::mem_fun(this, &PatchController::disconnection)); } @@ -483,6 +484,7 @@ void PatchController::remove_node(const string& name) { assert(name.find("/") == string::npos); + assert(!m_patch_model->get_node(name)); // Update breadcrumbs if necessary if (m_window != NULL) @@ -492,8 +494,6 @@ PatchController::remove_node(const string& name) assert(m_patch_view->canvas() != NULL); m_patch_view->canvas()->remove_module(name); } - - patch_model()->remove_node(name); } |