summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PatchModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/PatchModel.cpp')
-rw-r--r--src/libs/client/PatchModel.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp
index d61258f3..659fca23 100644
--- a/src/libs/client/PatchModel.cpp
+++ b/src/libs/client/PatchModel.cpp
@@ -223,6 +223,26 @@ PatchModel::remove_connection(const string& src_port_path, const string& dst_por
}
+void
+PatchModel::enable()
+{
+ if (!m_enabled) {
+ m_enabled = true;
+ enabled_sig.emit();
+ }
+}
+
+
+void
+PatchModel::disable()
+{
+ if (m_enabled) {
+ m_enabled = false;
+ disabled_sig.emit();
+ }
+}
+
+
bool
PatchModel::polyphonic() const
{