diff options
author | David Robillard <d@drobilla.net> | 2006-06-14 18:23:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-14 18:23:57 +0000 |
commit | 5a7beed295e6c8cee627774b9ca4d2e0eff510c1 (patch) | |
tree | df080d187fc75292a163d5ab7331b15027e81154 /src/libs/client/Store.cpp | |
parent | 52f5c887cf8d4149278d137684f8f1ee31231d65 (diff) | |
download | ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.gz ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.bz2 ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.zip |
Removed unused cruft from GTK client
git-svn-id: http://svn.drobilla.net/lad/grauph@37 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r-- | src/libs/client/Store.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index d1555f4d..ef70dc28 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -209,6 +209,17 @@ Store::new_patch_event(const string& path, uint32_t poly) if (m_objects.find(path) == m_objects.end()) { PatchModel* const p = new PatchModel(path, poly); add_object(p); + + std::map<string, CountedPtr<ObjectModel> >::iterator pi = m_objects.find(p->path().parent()); + if (pi != m_objects.end()) { + CountedPtr<PatchModel> parent = (*pi).second; + if (parent) { + p->set_parent(parent); + parent->add_node(p); + } else { + cerr << "ERROR: new patch with no parent" << endl; + } + } } } @@ -217,8 +228,6 @@ void Store::new_node_event(const string& plugin_type, const string& plugin_uri, const string& node_path, bool is_polyphonic, uint32_t num_ports) { // FIXME: What to do with a conflict? - // FIXME: resolve plugin here - if (m_objects.find(node_path) == m_objects.end()) { |