Skip to content

Commit d4dd873

Browse files
committed
When the Parameter combo box in the Parameters dialog gets focus, rebuild the parameter list.
This deals with cases where changing a parameter value also changes parameter names; e.g. changing the bad type in ReaEq. Fixes #706.
1 parent 04fb6f9 commit d4dd873

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/paramsUi.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,12 @@ class ParamsDialog {
428428
} else if (LOWORD(wParam) == ID_PARAM_FILTER && HIWORD(wParam) == EN_KILLFOCUS) {
429429
dialog->onFilterChange();
430430
return TRUE;
431+
} else if (LOWORD(wParam) == ID_PARAM &&
432+
HIWORD(wParam) == CBN_SETFOCUS) {
433+
// Changing a param value might update param names; e.g. changing the
434+
// band type in ReaEq.
435+
dialog->updateParamList();
436+
return TRUE;
431437
} else if (LOWORD(wParam) == ID_PARAM_VAL_EDIT && HIWORD(wParam) ==EN_KILLFOCUS) {
432438
dialog->onValueEdited();
433439
return TRUE;

0 commit comments

Comments
 (0)