Skip to content

Commit 33422f8

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 0969c08 commit 33422f8

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
@@ -418,6 +418,12 @@ class ParamsDialog {
418418
} else if (LOWORD(wParam) == ID_PARAM_FILTER && HIWORD(wParam) == EN_KILLFOCUS) {
419419
dialog->onFilterChange();
420420
return TRUE;
421+
} else if (LOWORD(wParam) == ID_PARAM &&
422+
HIWORD(wParam) == CBN_SETFOCUS) {
423+
// Changing a param value might update param names; e.g. changing the
424+
// band type in ReaEq.
425+
dialog->updateParamList();
426+
return TRUE;
421427
} else if (LOWORD(wParam) == ID_PARAM_VAL_EDIT && HIWORD(wParam) ==EN_KILLFOCUS) {
422428
dialog->onValueEdited();
423429
return TRUE;

0 commit comments

Comments
 (0)