diff options
author | David Robillard <d@drobilla.net> | 2014-04-26 16:46:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-04-26 16:46:00 +0000 |
commit | 705dd2555edba4b0355996acd9fd82c59b5bee27 (patch) | |
tree | 297b009ae333bbb1211b8c8be953303cb39d35d5 | |
parent | 0291bbfe56e0e3020862fb54073f968d66b53ae6 (diff) | |
download | patchage-705dd2555edba4b0355996acd9fd82c59b5bee27.tar.gz patchage-705dd2555edba4b0355996acd9fd82c59b5bee27.tar.bz2 patchage-705dd2555edba4b0355996acd9fd82c59b5bee27.zip |
Tolerate duplicate port wackiness gracefully.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@5366 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/JackDriver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index bb40647..2bc5e56 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -158,7 +158,11 @@ JackDriver::create_port_view(Patchage* patchage, patchage->canvas()->add_module(module_name, parent); } - assert(!parent->get_port(port_name)); + if (parent->get_port(port_name)) { + _app->error_msg((format("Jack: Module `%1%' already has port `%2%'.") + % module_name % port_name).str()); + return NULL; + } PatchagePort* port = create_port(*parent, jack_port, id); port->show(); |