summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/midi_time_axis.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index fb6cfe9aa6..d682ffe745 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -430,11 +430,12 @@ MidiTimeAxisView::update_patch_selector ()
if (pi && pi->plugin ()->has_midnam ()) {
std::string model_name = pi->plugin ()->midnam_model ();
if (gui_property (X_("midnam-model-name")) != model_name) {
- /* ensure that "Plugin Provided" is prefixed at the top of the list */
- if (_midnam_model_selector.items().empty () || _midnam_model_selector.items().begin()->get_label() != _("Plugin Provided")) {
- setup_midnam_patches ();
- }
- model_changed (model_name);
+ /* user changed the MIDNAM model to something
+ other than the plugin provided one. We
+ should use that, and not the "plugin
+ provided" label.
+ */
+ model_changed (gui_property (X_("midnam-model-name")));
}
}
}