diff options
Diffstat (limited to 'src/client/PatchModel.cpp')
-rw-r--r-- | src/client/PatchModel.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/PatchModel.cpp b/src/client/PatchModel.cpp index c27ff718..980a902c 100644 --- a/src/client/PatchModel.cpp +++ b/src/client/PatchModel.cpp @@ -163,14 +163,15 @@ PatchModel::remove_connection(const string& src_port_path, const string& dst_por bool PatchModel::enabled() const { - const Raul::Atom& enabled = get_property("ingen:enabled"); + const Raul::Atom& enabled = get_variable("ingen:enabled"); return (enabled.is_valid() && enabled.get_bool()); } - + + void -PatchModel::set_property(const std::string& key, const Atom& value) +PatchModel::set_variable(const std::string& key, const Atom& value) { - ResourceImpl::set_property(key, value); + NodeModel::set_variable(key, value); if (key == "ingen:polyphony") _poly = value.get_int32(); } |