summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-23 19:45:43 +0000
committerDavid Robillard <d@drobilla.net>2015-10-23 19:45:43 +0000
commitae84d83a49ff577152b5a26a03cd919a3c43644c (patch)
treee77623cba8232a0411fd8f51e43017204ccfff7d /src/gui
parent707c59c87c2c0c954b6da584c6799780de600004 (diff)
downloadingen-ae84d83a49ff577152b5a26a03cd919a3c43644c.tar.gz
ingen-ae84d83a49ff577152b5a26a03cd919a3c43644c.tar.bz2
ingen-ae84d83a49ff577152b5a26a03cd919a3c43644c.zip
Fix errors on C-a Delete
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5772 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/GraphCanvas.cpp4
1 files changed, 3 insertions, 1 deletions
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<GraphPortModule*>(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());
}
}