diff options
author | David Robillard <d@drobilla.net> | 2015-11-30 19:39:19 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-30 19:39:19 -0500 |
commit | e19f59e99a63b26d08e7d5506548222675521d40 (patch) | |
tree | eff351551bdaa2f0d63e6a7b9f61b98052607ce9 /ingen | |
parent | 653c34e4f4cc201faa8332bae7f9fb08f0d09330 (diff) | |
download | ingen-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...
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/Node.hpp | 4 |
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() + "/"; } } |