Skip to content

Commit

Permalink
Remove local variables with same name when adding system parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed May 27, 2024
1 parent f9113ce commit 1884743
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HopsanGUI/HcomHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2122,6 +2122,9 @@ void HcomHandler::executeAddParameterCommand(const QString cmd)
}
CoreParameterData paramData(args[0], args[1], type);
pContainer->setOrAddParameter(paramData);

//Make sure to remove local variables with same name
mLocalVars.remove(args[0]);
}
}

Expand Down

0 comments on commit 1884743

Please sign in to comment.