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, 4 insertions, 16 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp
index 20a47406..38019eda 100644
--- a/src/libs/client/PatchModel.cpp
+++ b/src/libs/client/PatchModel.cpp
@@ -160,23 +160,11 @@ PatchModel::remove_connection(const string& src_port_path, const string& dst_por
}
-void
-PatchModel::enable()
-{
- if (!_enabled) {
- _enabled = true;
- signal_enabled.emit();
- }
-}
-
-
-void
-PatchModel::disable()
+bool
+PatchModel::enabled() const
{
- if (_enabled) {
- _enabled = false;
- signal_disabled.emit();
- }
+ Variables::const_iterator i = _properties.find("ingen:enabled");
+ return (i != _properties.end() && i->second.type() == Atom::BOOL && i->second.get_bool());
}