summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-02-05 12:48:57 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-02-05 12:53:15 -0700
commitee43db8b5410ce3a6b1215c7cf943186c35e76e0 (patch)
tree89b3baab46eb3ce6d2bd5cab9264d5a8989d3e84 /gtk2_ardour/midi_time_axis.cc
parentbe45193f3f993b4449a215e2a2b0a53b5e9616c5 (diff)
revert/change part of a666429d12 so that user-selected non-plugin MIDNAM model names are still shown (they were already used)
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-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")));
}
}
}