remove unnecessary code

There's no reason to store the first device mode in a gui property if the model is also not a gui property
This commit is contained in:
Paul Davis 2020-02-11 17:40:07 -07:00
parent fac8d84786
commit a48a2b26de
1 changed files with 0 additions and 7 deletions

View File

@ -255,13 +255,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt)
}
}
if (gui_property (X_("midnam-custom-device-mode")).empty()) {
boost::shared_ptr<MIDI::Name::MasterDeviceNames> device_names = get_device_names();
if (device_names) {
set_gui_property (X_("midnam-custom-device-mode"), *device_names->custom_device_mode_names().begin());
}
}
ArdourWidgets::set_tooltip (_midnam_model_selector, _("External MIDI Device"));
ArdourWidgets::set_tooltip (_midnam_custom_device_mode_selector, _("External Device Mode"));