summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-17 02:15:11 +0000
committerDavid Robillard <d@drobilla.net>2008-11-17 02:15:11 +0000
commit3e23b6e6a57e165a5547a5e455da5163ad0f8efa (patch)
treefc25754f00e8542fde56a0bb0ebc7636747f8109
parent6fc9a57ed545cf28169902351b31cfefe49cb2c9 (diff)
downloadingen-3e23b6e6a57e165a5547a5e455da5163ad0f8efa.tar.gz
ingen-3e23b6e6a57e165a5547a5e455da5163ad0f8efa.tar.bz2
ingen-3e23b6e6a57e165a5547a5e455da5163ad0f8efa.zip
Fix recursive connection loading (fix ticket #250).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1750 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/serialisation/Parser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 2959e12a..fac5a656 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -588,7 +588,7 @@ Parser::parse_connections(
{
Redland::Query query(*world->rdf_world, Glib::ustring(
"SELECT DISTINCT ?src ?dst WHERE {\n")
- /*+ subject*/ + /*"?foo ingen:connection ?connection .\n"*/
+ + subject + " ingen:connection ?connection .\n"
"?connection ingen:source ?src ;\n"
" ingen:destination ?dst .\n"
"}");
@@ -607,6 +607,9 @@ Parser::parse_connections(
continue;
}
+ src_path = src_path.substr(parent.base().length()-1);
+ dst_path = dst_path.substr(parent.base().length()-1);
+
target->connect(src_path, dst_path);
}