diff options
author | David Robillard <d@drobilla.net> | 2009-12-30 15:48:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-12-30 15:48:50 +0000 |
commit | 715d577a38d04a98405a015fd18d49c0fed40c21 (patch) | |
tree | 02102070145066128a6ff4181256da59c63aacf7 /src/client/ObjectModel.cpp | |
parent | 87be66d677b1947ef1b5f866c44b0beb1263ac17 (diff) | |
download | ingen-715d577a38d04a98405a015fd18d49c0fed40c21.tar.gz ingen-715d577a38d04a98405a015fd18d49c0fed40c21.tar.bz2 ingen-715d577a38d04a98405a015fd18d49c0fed40c21.zip |
Fix renaming (fix ticket #458).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2324 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ObjectModel.cpp')
-rw-r--r-- | src/client/ObjectModel.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/client/ObjectModel.cpp b/src/client/ObjectModel.cpp index 3ffd96bd..e41be6c9 100644 --- a/src/client/ObjectModel.cpp +++ b/src/client/ObjectModel.cpp @@ -29,7 +29,7 @@ namespace Client { ObjectModel::ObjectModel(const Path& path) : ResourceImpl(path) - , _meta(std::string("meta:#") + path.chop_start("/")) + , _meta(ResourceImpl::meta_uri(path)) , _path(path) { } @@ -103,6 +103,23 @@ ObjectModel::set(SharedPtr<ObjectModel> o) } +void +ObjectModel::set_path(const Raul::Path& p) +{ + _path = p; + _meta.set_uri(ResourceImpl::meta_uri(_path)); + signal_moved.emit(); +} + + +void +ObjectModel::set_parent(SharedPtr<ObjectModel> p) +{ + assert(p); + _parent = p; +} + + } // namespace Client } // namespace Ingen |