From 6617930ccdc4f224fb6c7f4fe670cbd4374c6dae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 May 2009 14:58:02 +0000 Subject: Send port ranges and new subpatches as single PUTs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2023 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NewSubpatchWindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/NewSubpatchWindow.cpp') diff --git a/src/gui/NewSubpatchWindow.cpp b/src/gui/NewSubpatchWindow.cpp index 3c697d81..0442d57b 100644 --- a/src/gui/NewSubpatchWindow.cpp +++ b/src/gui/NewSubpatchWindow.cpp @@ -99,10 +99,9 @@ NewSubpatchWindow::ok_clicked() props.insert(make_pair("ingen:polyphony", Atom(int32_t(poly)))); App::instance().engine()->put(ResourceImpl::meta_uri(Path::root_uri, path), props); - for (GraphObject::Properties::const_iterator i = _initial_data.begin(); i != _initial_data.end(); ++i) - App::instance().engine()->set_property(path, i->first, i->second); - - App::instance().engine()->set_property(path, "ingen:enabled", (bool)true); + props = _initial_data; + props.insert(make_pair("ingen:enabled", bool(true))); + App::instance().engine()->put(path, props); hide(); } -- cgit v1.2.1