diff options
-rw-r--r-- | src/gui/LoadPluginWindow.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/gui/LoadPluginWindow.cpp b/src/gui/LoadPluginWindow.cpp index 03966964..4b024c8d 100644 --- a/src/gui/LoadPluginWindow.cpp +++ b/src/gui/LoadPluginWindow.cpp @@ -343,14 +343,10 @@ LoadPluginWindow::add_clicked() dialog.run(); } else { Path path = _patch->path().base() + Path::nameify(name); - Resource::Properties props; - props.insert(make_pair("rdf:type", Atom(Atom::URI, "ingen:Node"))); - props.insert(make_pair("rdf:instanceOf", Atom(Atom::URI, plugin->uri().str()))); - App::instance().engine()->put(path, props); - App::instance().engine()->set_property(path, "ingen:polyphonic", bool(polyphonic)); - for (GraphObject::Properties::const_iterator i = _initial_data.begin(); - i != _initial_data.end(); ++i) - App::instance().engine()->set_property(path, i->first, i->second); + Resource::Properties props = _initial_data; + props.insert(make_pair("rdf:type", Atom(Atom::URI, "ingen:Node"))); + props.insert(make_pair("rdf:instanceOf", Atom(Atom::URI, plugin->uri().str()))); + props.insert(make_pair("ingen:polyphonic", bool(polyphonic))); _node_name_entry->set_text(generate_module_name(++_plugin_name_offset)); // Cascade |