cross-port fix to generic MIDI control port choice from mixbus2
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@13283 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c7c11d2532
commit
4b72c5851a
|
@ -43,14 +43,11 @@ GenericMidiControlProtocol::GenericMidiControlProtocol (Session& s)
|
|||
{
|
||||
MIDI::Manager* mm = MIDI::Manager::instance();
|
||||
|
||||
/* XXX it might be nice to run "control" through i18n, but thats a bit tricky because
|
||||
the name is defined in ardour.rc which is likely not internationalized.
|
||||
*/
|
||||
|
||||
_port = mm->port (X_("control"));
|
||||
_port = mm->port (Config->get_midi_port_name());
|
||||
|
||||
if (_port == 0) {
|
||||
error << _("no MIDI port named \"control\" exists - generic MIDI control disabled") << endmsg;
|
||||
error << string_compose (_("no MIDI port named \"%1\" exists - generic MIDI control disabled"), Config->get_midi_port_name())
|
||||
<< endmsg;
|
||||
throw failed_constructor();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue