Skip to content
Snippets Groups Projects
Commit 3e468267 authored by Matthias Puchner's avatar Matthias Puchner
Browse files

prohibit double-creation of parameterContainer

parent 9bc218f3
No related branches found
No related tags found
1 merge request!491Refactor parameter tuning tree
...@@ -90,7 +90,9 @@ void populateParameterContainer(SessionItem* container, const SessionItem* sourc ...@@ -90,7 +90,9 @@ void populateParameterContainer(SessionItem* container, const SessionItem* sourc
void GUI::Model::ParameterTreeUtils::createParameterTree(JobItem* jobItem) void GUI::Model::ParameterTreeUtils::createParameterTree(JobItem* jobItem)
{ {
auto* container = jobItem->createParameterContainerItem(); auto* container = jobItem->parameterContainerItem();
if (!container)
container = jobItem->createParameterContainerItem();
populateParameterContainer(container, jobItem->materialContainerItem()); populateParameterContainer(container, jobItem->materialContainerItem());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment