summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-26 01:37:39 +0000
committerDavid Robillard <d@drobilla.net>2010-02-26 01:37:39 +0000
commit3d6b047cd19baf9bf5a81b4fe16e1e9e53ed8fef (patch)
treea4fa9662dde2bcff7cf7fe21ea6b05a9ad2d6a66 /src/gui
parent77a9beca75debd2d87d735fc4fe847694eee6f13 (diff)
downloadingen-3d6b047cd19baf9bf5a81b4fe16e1e9e53ed8fef.tar.gz
ingen-3d6b047cd19baf9bf5a81b4fe16e1e9e53ed8fef.tar.bz2
ingen-3d6b047cd19baf9bf5a81b4fe16e1e9e53ed8fef.zip
Show control ports in control dialog (fix regression from r2492).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2493 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-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");