summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-11-30 19:39:19 -0500
committerDavid Robillard <d@drobilla.net>2015-11-30 19:39:19 -0500
commite19f59e99a63b26d08e7d5506548222675521d40 (patch)
treeeff351551bdaa2f0d63e6a7b9f61b98052607ce9
parent653c34e4f4cc201faa8332bae7f9fb08f0d09330 (diff)
downloadingen-e19f59e99a63b26d08e7d5506548222675521d40.tar.gz
ingen-e19f59e99a63b26d08e7d5506548222675521d40.tar.bz2
ingen-e19f59e99a63b26d08e7d5506548222675521d40.zip
Fix Node::uri_is_path()
This prevented the GUI from starting at all since the root graph could not be found, not sure how this one slipped through...
-rw-r--r--ingen/Node.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp
index 640b63cf..c09a6fdd 100644
--- a/ingen/Node.hpp
+++ b/ingen/Node.hpp
@@ -89,10 +89,8 @@ public:
const size_t root_len = root_graph_uri().length();
if (uri == root_graph_uri()) {
return true;
- } else if (uri.substr(0, root_len + 1) != root_graph_uri() + "/") {
- return false;
} else {
- return Raul::URI::is_valid(uri.substr(root_len));
+ return uri.substr(0, root_len + 1) == root_graph_uri() + "/";
}
}