diff options
author | David Robillard <d@drobilla.net> | 2009-10-19 02:02:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-19 02:02:45 +0000 |
commit | 4defce238e4e568cd8586446ac4b1ab51e510254 (patch) | |
tree | 27f83534a81c9edc5e9d8a191edd8e6930b43780 /src/engine | |
parent | 7245510de8a82e85b68600b075064ae8ea84f2f5 (diff) | |
download | ingen-4defce238e4e568cd8586446ac4b1ab51e510254.tar.gz ingen-4defce238e4e568cd8586446ac4b1ab51e510254.tar.bz2 ingen-4defce238e4e568cd8586446ac4b1ab51e510254.zip |
Fix saving properties of root patch ports (fix ticket #389).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2194 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/events/CreatePort.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/events/CreatePort.cpp b/src/engine/events/CreatePort.cpp index b64e57b2..ba4fd9fe 100644 --- a/src/engine/events/CreatePort.cpp +++ b/src/engine/events/CreatePort.cpp @@ -99,7 +99,10 @@ CreatePort::pre_process() const uint32_t old_num_ports = _patch->num_ports(); _patch_port = _patch->create_port(_path.name(), _data_type, buffer_size, _is_output); - _patch_port->set_property("rdf:instanceOf", Atom(Atom::URI, _patch_port->meta_uri().str())); + if (_patch->parent()) + _patch_port->set_property("rdf:instanceOf", + Atom(Atom::URI, _patch_port->meta_uri().str())); + _patch_port->meta().properties().insert(_properties.begin(), _properties.end()); if (_patch_port) { |