diff options
author | Robin Gareus <robin@gareus.org> | 2018-01-30 12:40:22 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-01-30 12:40:22 +0100 |
commit | dc884716959eac4939db598df9db28aa4809431c (patch) | |
tree | 3ee0fa74e987f39aa7a5007cd0359ccbc136b2d0 /gtk2_ardour/processor_box.cc | |
parent | 6aa34c1b3a7db03e06846b0d5795e864d26a5dd4 (diff) |
Don't automatically open plugin-GUI if there are no controls
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 10 |
1 files changed, 7 insertions, 3 deletions
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<PluginInsert>(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<PluginInsert>(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<PluginInsert>(processor)->plugin()->parameter_count() > 0) { |