diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-15 02:21:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-15 02:21:25 +0000 |
commit | 0e74620ad469eb9d2ab9cb2f57ff650b2c796a00 (patch) | |
tree | 2fccaff29bd42ed8ce43f085aca0249ddbfecca1 /gtk2_ardour/plugin_ui.cc | |
parent | 3a1af63fedc4792a3c98de446d031bfe27e9202d (diff) |
Make VST preset files pre-preset rather than global. Clean up VST preset handling to use more of the bas class' code.
git-svn-id: svn://localhost/ardour2/branches/3.0@8279 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 165108ae19..dc26e49d82 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -687,7 +687,9 @@ PlugUIBase::update_presets () void PlugUIBase::update_sensitivity () { - bool const have_preset = !preset_combo.get_model()->children().empty(); - save_button.set_sensitive (have_preset); - delete_button.set_sensitive (have_preset); + bool const have_user_preset = + !preset_combo.get_model()->children().empty() && preset_combo.get_active_row_number() >= plugin->first_user_preset_index(); + + save_button.set_sensitive (have_user_preset); + delete_button.set_sensitive (have_user_preset); } |