Skip to content

Commit

Permalink
fix(clear all action): use copy of list when iterating and also remov…
Browse files Browse the repository at this point in the history
…ing items
  • Loading branch information
kunstmusik committed Oct 28, 2023
1 parent f185541 commit 1989789
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,9 @@ public JPopupMenu getAutomationMenu(ParameterIdList paramIdList) {
if (retVal == NotifyDescriptor.YES_OPTION) {

ParameterIdList idList = selectedParamIdList;
var copy = new ArrayList<String>(idList.getParameters());

for (String paramId : idList.getParameters()) {
for (String paramId : copy) {
Parameter param = getParameter(paramId);

param.setAutomationEnabled(false);
Expand Down

0 comments on commit 1989789

Please sign in to comment.