summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchView.cpp')
-rw-r--r--src/gui/PatchView.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/PatchView.cpp b/src/gui/PatchView.cpp
index 13689806..1c5c2c51 100644
--- a/src/gui/PatchView.cpp
+++ b/src/gui/PatchView.cpp
@@ -184,8 +184,12 @@ void
PatchView::property_changed(const std::string& predicate, const Raul::Atom& value)
{
_enable_signal = false;
- if (predicate == "ingen:enabled" && value.type() == Atom::BOOL)
- _process_but->set_active(value.get_bool());
+ if (predicate == "ingen:enabled") {
+ if (value.type() == Atom::BOOL)
+ _process_but->set_active(value.get_bool());
+ else
+ cerr << "WARNING: Bad type for ingen:enabled property: " << value.type() << endl;
+ }
_enable_signal = true;
}