A few missed bits

This commit is contained in:
Jasmine Iwanek
2022-02-20 00:58:08 -05:00
parent b797b7f667
commit a66e392b26
2 changed files with 5 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ void DeviceConfig::ConfigureDevice(const _device_* device, int instance, Setting
dc.ui->formLayout->addRow(config->description, cbox); dc.ui->formLayout->addRow(config->description, cbox);
break; break;
} }
case CONFIG_MIDI: case CONFIG_MIDI_OUT:
{ {
auto* cbox = new QComboBox(); auto* cbox = new QComboBox();
cbox->setObjectName(config->name); cbox->setObjectName(config->name);

View File

@@ -214,7 +214,7 @@ deviceconfig_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
id += 2; id += 2;
break; break;
case CONFIG_MIDI: case CONFIG_MIDI_OUT:
val_int = config_get_int((char *) config_device.name, val_int = config_get_int((char *) config_device.name,
(char *) config->name, config->default_int); (char *) config->name, config->default_int);
@@ -324,7 +324,7 @@ deviceconfig_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
id += 2; id += 2;
break; break;
case CONFIG_MIDI: case CONFIG_MIDI_OUT:
c = SendMessage(h, CB_GETCURSEL, 0, 0); c = SendMessage(h, CB_GETCURSEL, 0, 0);
config_set_int((char *) config_device.name, (char *) config->name, c); config_set_int((char *) config_device.name, (char *) config->name, c);
@@ -389,7 +389,7 @@ deviceconfig_dlgproc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam)
id++; id++;
break; break;
case CONFIG_SELECTION: case CONFIG_SELECTION:
case CONFIG_MIDI: case CONFIG_MIDI_OUT:
case CONFIG_MIDI_IN: case CONFIG_MIDI_IN:
case CONFIG_SPINNER: case CONFIG_SPINNER:
id += 2; id += 2;
@@ -487,7 +487,7 @@ deviceconfig_inst_open(HWND hwnd, const device_t *device, int inst)
break; break;
case CONFIG_SELECTION: case CONFIG_SELECTION:
case CONFIG_MIDI: case CONFIG_MIDI_OUT:
case CONFIG_MIDI_IN: case CONFIG_MIDI_IN:
case CONFIG_HEX16: case CONFIG_HEX16:
case CONFIG_HEX20: case CONFIG_HEX20: