summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-19 16:02:24 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-19 16:02:24 +0000
commit1df227424a651f3835f2e13b0cee7baa69d470ee (patch)
treecaac3b6c0c4f0a7ee0ee8b4f900cd451baad589f /gtk2_ardour
parent7a24e49fa07a363f677b89613e0e281cceef2804 (diff)
patch from colinf that adds an 'empty' preset to the preset drop-down list, so that plugins can be set back to the 'no preset' state rather than being stuck in the state of 'preset loaded and modified'. This should apply to all plugin types, though I've only tried it on LV2 and LADSPA.
git-svn-id: svn://localhost/ardour2/branches/3.0@12787 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/plugin_ui.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 455cea1364..169928843a 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -593,6 +593,9 @@ PlugUIBase::preset_selected ()
warning << string_compose(_("Plugin preset %1 not found"),
_preset_combo.get_active_text()) << endmsg;
}
+ } else {
+ // blank selected = no preset
+ plugin->clear_preset();
}
}
@@ -745,6 +748,8 @@ PlugUIBase::update_preset_list ()
preset_labels.push_back (i->label);
}
+ preset_labels.push_back("");
+
set_popdown_strings (_preset_combo, preset_labels);
--_no_load_preset;
@@ -768,6 +773,7 @@ PlugUIBase::update_preset ()
void
PlugUIBase::update_preset_modified ()
{
+
if (plugin->last_preset().uri.empty()) {
_preset_modified.set_text ("");
return;