From efe8e2311ee2fed881f95cc1e72825906d21c7c1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 12 Aug 2012 23:42:17 +0000 Subject: Use ingen:root as the path for the root patch, opening up path space for engine/driver/etc. Strict conversion between Path and URI (Path no longer is-a URI). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4672 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/Delete.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/server/events/Delete.cpp') diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp index 5a88de9f..3121d6ad 100644 --- a/src/server/events/Delete.cpp +++ b/src/server/events/Delete.cpp @@ -50,8 +50,9 @@ Delete::Delete(Engine& engine, , _disconnect_event(NULL) , _lock(engine.engine_store()->lock(), Glib::NOT_LOCK) { - if (Raul::Path::is_path(uri)) - _path = Raul::Path(uri.str()); + if (GraphObject::uri_is_path(uri)) { + _path = GraphObject::uri_to_path(uri); + } } Delete::~Delete() @@ -62,9 +63,7 @@ Delete::~Delete() bool Delete::pre_process() { - if (_path.is_root() || - _path == "path:/control_in" || - _path == "path:/control_out") { + if (_path == "/" || _path == "/control_in" || _path == "/control_out") { return Event::pre_process_done(NOT_DELETABLE, _path); } @@ -170,7 +169,7 @@ Delete::post_process() if (_disconnect_event) { _disconnect_event->post_process(); } - _engine.broadcaster()->del(_path); + _engine.broadcaster()->del(_uri); _engine.broadcaster()->bundle_end(); } -- cgit v1.2.1