1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Bug 2424 - Linx/Mac: Malformed choice widget in MIDI Device Preferences

This commit is contained in:
Leland Lucius 2021-02-17 02:15:06 -06:00
parent 471d5e9d25
commit 6ec6c9b8a8

View File

@ -126,6 +126,11 @@ void MidiIOPrefs::GetNamesAndLabels() {
}
}
}
if (nDevices == 0) {
mHostNames.push_back(XO("No MIDI interfaces"));
mHostLabels.push_back(wxT("No MIDI interfaces"));
}
}
void MidiIOPrefs::PopulateOrExchange( ShuttleGui & S ) {
@ -199,12 +204,6 @@ void MidiIOPrefs::OnHost(wxCommandEvent & WXUNUSED(e))
itemAtIndex = mHostLabels[index];
int nDevices = Pm_CountDevices();
if (nDevices == 0) {
mHost->Clear();
mHost->Append(_("No MIDI interfaces"), (void *) NULL);
mHost->SetSelection(0);
}
mPlay->Clear();
#ifdef EXPERIMENTAL_MIDI_IN
mRecord->Clear();