mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-27 23:48:22 +01:00
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
This commit is contained in:
parent
ca28404a2a
commit
9d60197ffb
1 changed files with 0 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue