From a54169c198f9c81113239f6d346074af48220a3a Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Fri, 20 Jan 2006 23:27:47 +0000 Subject: [PATCH] Moved the code to ignore latency ports to the appropriate place (*before* the packer code). git-svn-id: svn://localhost/trunk/ardour2@283 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/plugin_ui.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 06d4088112..c9e8c2ee14 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -235,9 +235,15 @@ PluginUI::build (AudioEngine &engine) for (i = 0; i < plugin.parameter_count(); ++i) { if (plugin.parameter_is_control (i)) { + + /* Don't show latency control ports */ + + if (plugin.describe_parameter (i) == X_("latency")) { + continue; + } ControlUI* cui; - + /* if we are scrollable, just use one long column */ if (!is_scrollable) { @@ -256,12 +262,6 @@ PluginUI::build (AudioEngine &engine) } } - /* Don't show latency control ports */ - - if (plugin.describe_parameter (i) == X_("latency")) { - continue; - } - if ((cui = build_control_ui (engine, i, plugin.get_nth_midi_control (i))) == 0) { error << string_compose(_("Plugin Editor: could not build control element for port %1"), i) << endmsg; continue;