diff --git a/GUI/coregui/Models/ParticleDistributionItem.cpp b/GUI/coregui/Models/ParticleDistributionItem.cpp index 831cdab4b0e8cd1b94e2831e9935492f51b730d3..b3129eb4c8d4dfd34ca17e762df5ca50cb54a11e 100644 --- a/GUI/coregui/Models/ParticleDistributionItem.cpp +++ b/GUI/coregui/Models/ParticleDistributionItem.cpp @@ -78,7 +78,6 @@ void ParticleDistributionItem::updateParameterList() QString selected_par = par_prop.value<ComboProperty>().getValue(); QString cached_par = getRegisteredProperty(P_CACHED_SELECTED_PARAMETER).toString(); - removeRegisteredProperty(P_DISTRIBUTED_PARAMETER); ComboProperty updated_prop; if (childItems().size()>0) { QStringList par_names = childItems()[0]->getParameterTreeList(); @@ -99,5 +98,5 @@ void ParticleDistributionItem::updateParameterList() setRegisteredProperty(P_CACHED_SELECTED_PARAMETER, updated_prop.getValue()); } - registerProperty(P_DISTRIBUTED_PARAMETER, updated_prop.getVariant()); + setRegisteredProperty(P_DISTRIBUTED_PARAMETER, updated_prop.getVariant()); }