diff options
Diffstat (limited to 'src/libs/gui/LoadPatchWindow.cpp')
-rw-r--r-- | src/libs/gui/LoadPatchWindow.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libs/gui/LoadPatchWindow.cpp b/src/libs/gui/LoadPatchWindow.cpp index 57ae1536..398eaf1f 100644 --- a/src/libs/gui/LoadPatchWindow.cpp +++ b/src/libs/gui/LoadPatchWindow.cpp @@ -127,11 +127,8 @@ LoadPatchWindow::ok_clicked() if (_poly_from_user_radio->get_active()) _initial_data.insert(make_pair("ingen:polyphony", _poly_spinbutton->get_value_as_int())); - if (_replace) { + if (_replace) App::instance().engine()->clear_patch(_patch->path()); - App::instance().engine()->set_variable(_patch->path(), "ingen:document", - Atom(get_uri().c_str())); - } if (_patch->path() != "/") parent = _patch->path().parent(); |