diff options
Diffstat (limited to 'ingen/Node.hpp')
-rw-r--r-- | ingen/Node.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ingen/Node.hpp b/ingen/Node.hpp index 275c82cc..db796ef7 100644 --- a/ingen/Node.hpp +++ b/ingen/Node.hpp @@ -72,10 +72,11 @@ public: virtual const Raul::Symbol& symbol() const = 0; virtual Node* graph_parent() const = 0; - static Raul::URI root_uri() { return Raul::URI("ingen:root"); } + static Raul::URI root_uri() { return Raul::URI("ingen:/root"); } static bool uri_is_path(const Raul::URI& uri) { - return uri.substr(0, root_uri().length() + 1) == root_uri() + "/"; + return uri == root_uri() || + uri.substr(0, root_uri().length() + 1) == root_uri() + "/"; } static Raul::Path uri_to_path(const Raul::URI& uri) { |