diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-11 14:16:47 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-02-11 14:16:47 -0700 |
commit | 9d60197ffb42d33554db7f604ac05ab9e1ec342f (patch) | |
tree | ae149be180112e04d5a81ebe6769aa1dbcccdbff | |
parent | ca28404a2ac7e1ec359ce375fc2b3c260f6c2391 (diff) |
remove unnecessary code
If there's no GUI property for the MIDNAM model name, and the plugin has no MIDNAM, there's no reason to set the property to the default
It will pick up the default ("Generic") during update_patch_selector() calling into model_changed
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 5cb8138c16..c06cf4a352 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -255,13 +255,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt) } } - if (gui_property (X_("midnam-model-name")).empty()) { - boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (_route->the_instrument ()); - if (!pi || !pi->plugin ()->has_midnam ()) { - set_gui_property (X_("midnam-model-name"), DEFAULT_MIDNAM_MODEL); - } - } - if (gui_property (X_("midnam-custom-device-mode")).empty()) { boost::shared_ptr<MIDI::Name::MasterDeviceNames> device_names = get_device_names(); if (device_names) { |