summaryrefslogtreecommitdiff
path: root/gtk2_ardour/lv2_plugin_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-09-08 20:54:19 +0200
committerRobin Gareus <robin@gareus.org>2017-09-08 23:35:00 +0200
commit64be124fe0f4f9efa456c90944b80b00483458a6 (patch)
tree4322fa81d2aaf8c084047e63f0dfc632d5940ed9 /gtk2_ardour/lv2_plugin_ui.cc
parentaa11cb96b3c9b35d40a5fbefc41aa75ccf957f80 (diff)
PluginUI: only show "Reset" & Automation buttons if there are any controls
Diffstat (limited to 'gtk2_ardour/lv2_plugin_ui.cc')
-rw-r--r--gtk2_ardour/lv2_plugin_ui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc
index d7f6708d00..25fdf1ed72 100644
--- a/gtk2_ardour/lv2_plugin_ui.cc
+++ b/gtk2_ardour/lv2_plugin_ui.cc
@@ -235,7 +235,9 @@ LV2PluginUI::LV2PluginUI(boost::shared_ptr<PluginInsert> pi,
_ardour_buttons_box.set_border_width (6);
_ardour_buttons_box.pack_end (focus_button, false, false);
_ardour_buttons_box.pack_end (bypass_button, false, false, 4);
- _ardour_buttons_box.pack_end (reset_button, false, false, 4);
+ if (pi->controls().size() > 0) {
+ _ardour_buttons_box.pack_end (reset_button, false, false, 4);
+ }
_ardour_buttons_box.pack_end (delete_button, false, false);
_ardour_buttons_box.pack_end (save_button, false, false);
_ardour_buttons_box.pack_end (add_button, false, false);