diff options
Diffstat (limited to 'src/libs/gui/LoadPatchWindow.cpp')
-rw-r--r-- | src/libs/gui/LoadPatchWindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libs/gui/LoadPatchWindow.cpp b/src/libs/gui/LoadPatchWindow.cpp index da557b40..593f2b6d 100644 --- a/src/libs/gui/LoadPatchWindow.cpp +++ b/src/libs/gui/LoadPatchWindow.cpp @@ -116,14 +116,13 @@ LoadPatchWindow::poly_from_user_selected() void LoadPatchWindow::ok_clicked() { - // If unset load_patch will load values + // If unset load_patch will load value optional<const string&> name; - optional<uint32_t> poly; optional<Path> parent; if (_poly_from_user_radio->get_active()) - poly = _poly_spinbutton->get_value_as_int(); + _initial_data.insert(make_pair("ingen:polyphony", _poly_spinbutton->get_value_as_int())); if (_replace) App::instance().engine()->clear_patch(_patch->path()); @@ -132,7 +131,7 @@ LoadPatchWindow::ok_clicked() parent = _patch->path().parent(); App::instance().loader()->load_patch(true, get_uri(), "/", - _initial_data, parent, name, poly); + _initial_data, parent, name); hide(); } |