From e19f59e99a63b26d08e7d5506548222675521d40 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 Nov 2015 19:39:19 -0500 Subject: 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... --- ingen/Node.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ingen/Node.hpp') 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() + "/"; } } -- cgit v1.2.1