From ae84d83a49ff577152b5a26a03cd919a3c43644c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Oct 2015 19:45:43 +0000 Subject: Fix errors on C-a Delete git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5772 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/GraphCanvas.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index e4e5c120..be1b9de8 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -536,7 +536,9 @@ destroy_node(GanvNode* node, void* data) app->interface()->del(node_module->block()->uri()); } else { GraphPortModule* port_module = dynamic_cast(module); - if (port_module) { + if (port_module && + strcmp(port_module->port()->path().symbol(), "control_in") && + strcmp(port_module->port()->path().symbol(), "control_out")) { app->interface()->del(port_module->port()->uri()); } } -- cgit v1.2.1