summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/ObjectMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/ObjectMenu.cpp')
-rw-r--r--src/libs/gui/ObjectMenu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libs/gui/ObjectMenu.cpp b/src/libs/gui/ObjectMenu.cpp
index 3a208d51..8f7c3869 100644
--- a/src/libs/gui/ObjectMenu.cpp
+++ b/src/libs/gui/ObjectMenu.cpp
@@ -68,7 +68,7 @@ ObjectMenu::init(SharedPtr<ObjectModel> object)
_properties_menuitem->signal_activate().connect(
sigc::mem_fun(this, &ObjectMenu::on_menu_properties));
- object->signal_polyphonic.connect(sigc::mem_fun(this, &ObjectMenu::polyphonic_changed));
+ object->signal_property.connect(sigc::mem_fun(this, &ObjectMenu::property_changed));
_enable_signal = true;
}
@@ -83,10 +83,11 @@ ObjectMenu::on_menu_polyphonic()
void
-ObjectMenu::polyphonic_changed(bool polyphonic)
+ObjectMenu::property_changed(const std::string& predicate, const Raul::Atom& value)
{
_enable_signal = false;
- _polyphonic_menuitem->set_active(polyphonic);
+ if (predicate == "ingen:polyphonic" && value.type() == Atom::BOOL)
+ _polyphonic_menuitem->set_active(value.get_bool());
_enable_signal = true;
}