summaryrefslogtreecommitdiffstats
path: root/src/gui/PortPropertiesWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PortPropertiesWindow.cpp')
-rw-r--r--src/gui/PortPropertiesWindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/PortPropertiesWindow.cpp b/src/gui/PortPropertiesWindow.cpp
index 045e8840..3efe02bd 100644
--- a/src/gui/PortPropertiesWindow.cpp
+++ b/src/gui/PortPropertiesWindow.cpp
@@ -155,11 +155,10 @@ PortPropertiesWindow::cancel()
void
PortPropertiesWindow::ok()
{
- const float min = _min_spinner->get_value();
- const float max = _max_spinner->get_value();
-
- App::instance().engine()->set_property(_port_model->meta().uri(), "lv2:minimum", min);
- App::instance().engine()->set_property(_port_model->meta().uri(), "lv2:maximum", max);
+ Shared::Resource::Properties props;
+ props.insert(make_pair("lv2:minimum", float(_min_spinner->get_value())));
+ props.insert(make_pair("lv2:maximum", float(_max_spinner->get_value())));
+ App::instance().engine()->put(_port_model->meta().uri(), props);
hide();
}