diff options
author | David Robillard <d@drobilla.net> | 2006-12-11 22:32:31 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-12-11 22:32:31 +0000 |
commit | 9e2a757e026abf79d0cdcf12a18796fa89973356 (patch) | |
tree | b739d65e9d15415b5fbfd1e9969e2efd7b498c25 /src/libs/client/Store.cpp | |
parent | c9fdc9d94f3d6081e36e98f5ae6cc03f361e8057 (diff) | |
download | ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.tar.gz ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.tar.bz2 ingen-9e2a757e026abf79d0cdcf12a18796fa89973356.zip |
Serialization of patch ports.
git-svn-id: http://svn.drobilla.net/lad/ingen@216 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r-- | src/libs/client/Store.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 75667ee6..69358d0c 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -378,17 +378,9 @@ Store::new_node_event(const string& plugin_uri, const Path& node_path, bool is_p void Store::new_port_event(const Path& path, const string& type, bool is_output) { - // FIXME: this sucks - - PortModel::Type ptype = PortModel::CONTROL; - if (type == "AUDIO") ptype = PortModel::AUDIO; - else if (type == "CONTROL") ptype = PortModel::CONTROL; - else if (type== "MIDI") ptype = PortModel::MIDI; - else cerr << "[Store] WARNING: Unknown port type received (" << type << ")" << endl; - PortModel::Direction pdir = is_output ? PortModel::OUTPUT : PortModel::INPUT; - SharedPtr<PortModel> p(new PortModel(path, ptype, pdir)); + SharedPtr<PortModel> p(new PortModel(path, type, pdir)); add_object(p); if (p->parent()) resolve_connection_orphans(p); |