From f605985205d7c407afc67a093aed44b1ef344f55 Mon Sep 17 00:00:00 2001 From: Walter Van Herck <w.van.herck@fz-juelich.de> Date: Tue, 23 Dec 2014 15:55:53 +0100 Subject: [PATCH] bugfix --- GUI/coregui/Models/ParticleDistributionItem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GUI/coregui/Models/ParticleDistributionItem.cpp b/GUI/coregui/Models/ParticleDistributionItem.cpp index 831cdab4b0e..b3129eb4c8d 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()); } -- GitLab