summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-04 18:49:56 +0000
committerDavid Robillard <d@drobilla.net>2006-07-04 18:49:56 +0000
commitc449044cd4c8178afca187bab823f580d517b813 (patch)
tree6f1e6c095dc981ff15f2a93d79b53ec985e2bb9a /src/libs/client
parentfefd94019be32da03fcfd4b683860e3461e19000 (diff)
downloadingen-c449044cd4c8178afca187bab823f580d517b813.tar.gz
ingen-c449044cd4c8178afca187bab823f580d517b813.tar.bz2
ingen-c449044cd4c8178afca187bab823f580d517b813.zip
Partial support for loading old patches
git-svn-id: http://svn.drobilla.net/lad/ingen@84 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/PatchLibrarian.cpp1
-rw-r--r--src/libs/client/PatchModel.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/client/PatchLibrarian.cpp b/src/libs/client/PatchLibrarian.cpp
index f80ba90b..add95625 100644
--- a/src/libs/client/PatchLibrarian.cpp
+++ b/src/libs/client/PatchLibrarian.cpp
@@ -600,6 +600,7 @@ PatchLibrarian::parse_node(const PatchModel* parent, xmlDocPtr doc, const xmlNod
PortModel* pm = new PortModel(path,
PortModel::CONTROL, PortModel::INPUT, PortModel::NONE,
0.0, user_min, user_max);
+ pm->set_parent(nm);
nm->add_port(pm);
// DSSI hacks. Stored in the patch files as special elements, but sent to
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp
index 27f0361a..c6b4c46b 100644
--- a/src/libs/client/PatchModel.cpp
+++ b/src/libs/client/PatchModel.cpp
@@ -209,7 +209,7 @@ PatchModel::add_connection(CountedPtr<ConnectionModel> cm)
void
PatchModel::remove_connection(const string& src_port_path, const string& dst_port_path)
{
- cerr << path() << " PatchModel::remove_connection: " << cm->src_port_path() << " -> " << cm->dst_port_path() << endl;
+ cerr << path() << " PatchModel::remove_connection: " << src_port_path << " -> " << dst_port_path << endl;
for (list<CountedPtr<ConnectionModel> >::iterator i = m_connections.begin(); i != m_connections.end(); ++i) {
CountedPtr<ConnectionModel> cm = (*i);
if (cm->src_port_path() == src_port_path && cm->dst_port_path() == dst_port_path) {