summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/ControlPanel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp
index c0f6d19f..1d2f13cc 100644
--- a/src/gui/ControlPanel.cpp
+++ b/src/gui/ControlPanel.cpp
@@ -96,7 +96,8 @@ ControlPanel::add_port(SharedPtr<PortModel> pm)
= GladeFactory::new_glade_reference("toggle_control");
xml->get_widget_derived("toggle_control", tc);
control = tc;
- } else if (pm->supports(App::instance().uris().object_class_float32)) {
+ } else if (pm->is_a(Shared::PortType::CONTROL)
+ || pm->supports(App::instance().uris().object_class_float32)) {
SliderControl* sc;
Glib::RefPtr<Gnome::Glade::Xml> xml
= GladeFactory::new_glade_reference("control_strip");