diff options
author | David Robillard <d@drobilla.net> | 2006-09-10 03:42:59 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-10 03:42:59 +0000 |
commit | ee376a70121cda807de0ab1c4124996700a1f513 (patch) | |
tree | 81154b1d7539932414eab91bb85084699dda76b8 /src/JackDriver.cpp | |
parent | f514f3a017029bcc68fab25c8b84be4e6122709d (diff) | |
download | patchage-ee376a70121cda807de0ab1c4124996700a1f513.tar.gz patchage-ee376a70121cda807de0ab1c4124996700a1f513.tar.bz2 patchage-ee376a70121cda807de0ab1c4124996700a1f513.zip |
GUI redesigning.
git-svn-id: http://svn.drobilla.net/lad/patchage@125 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index bbbd8fb..c40e589 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -134,7 +134,7 @@ JackDriver::refresh() m = new PatchageModule(m_app, client1_name, type); m->load_location(); m->store_location(); - m_canvas->add_module(m); + m->show(); } // FIXME: leak? jack docs don't say @@ -166,7 +166,11 @@ JackDriver::refresh() port2_name = client2_name.substr(client2_name.find(':')+1); client2_name = client2_name.substr(0, client2_name.find(':')); - m_canvas->add_connection(client1_name, port1_name, client2_name, port2_name); + Port* const port1 = m_canvas->get_port(client1_name, port1_name); + Port* const port2 = m_canvas->get_port(client2_name, port2_name); + + if (port1 && port2) + m_canvas->add_connection(port1, port2); } free(connected_ports); } |