PluginUI: only show "Reset" & Automation buttons if there are any controls
[ardour.git] / gtk2_ardour / vst_plugin_ui.cc
index 7d9e349466fcb2d32103dd01d43b840eec419cb2..fe6661960117d5ed4a5efc5870cb6001accb4817 100644 (file)
@@ -40,7 +40,9 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> insert, boost:
        box->set_border_width (6);
        box->pack_end (focus_button, false, false);
        box->pack_end (bypass_button, false, false, 4);
-       box->pack_end (reset_button, false, false, 4);
+       if (insert->controls().size() > 0) {
+               box->pack_end (reset_button, false, false, 4);
+       }
        box->pack_end (delete_button, false, false);
        box->pack_end (save_button, false, false);
        box->pack_end (add_button, false, false);