From dc884716959eac4939db598df9db28aa4809431c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 30 Jan 2018 12:40:22 +0100 Subject: Don't automatically open plugin-GUI if there are no controls --- gtk2_ardour/processor_box.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/processor_box.cc') diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 9103db0597..504ad10f32 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2396,9 +2396,13 @@ ProcessorBox::use_plugins (const SelectedPlugins& plugins) return true; // XXX SHAREDPTR delete plugin here .. do we even need to care? } else if (plugins.size() == 1 && UIConfiguration::instance().get_open_gui_after_adding_plugin()) { - if (boost::dynamic_pointer_cast(processor)->plugin()->has_inline_display() && UIConfiguration::instance().get_prefer_inline_over_gui()) { - ; - } else if (_session->engine().connected () && processor_can_be_edited (processor)) { + if (processor->what_can_be_automated ().size () == 0) { + ; /* plugin without controls, don't show ui */ + } + else if (boost::dynamic_pointer_cast(processor)->plugin()->has_inline_display() && UIConfiguration::instance().get_prefer_inline_over_gui()) { + ; /* only show inline display */ + } + else if (_session->engine().connected () && processor_can_be_edited (processor)) { if ((*p)->has_editor ()) { edit_processor (processor); } else if (boost::dynamic_pointer_cast(processor)->plugin()->parameter_count() > 0) { -- cgit v1.2.3