Commit 68b8af79 authored by eric pellegrini's avatar eric pellegrini
Browse files

Bug fix when getting the value of atom selection and transmutation

widgets
Bug fix when configuring partial charges from UD
parent 5c79895c
......@@ -57,7 +57,7 @@ class PartialChargeConfigurator(IConfigurator):
trajConfig = configuration[self._dependencies['trajectory']]
if UD_STORE.has_definition(trajConfig["basename"],'partial_charges',value):
self['charges'] = UD_STORE.get_definition(trajConfig["basename"],'partial_charges',value)
self.update(UD_STORE.get_definition(trajConfig["basename"],'partial_charges',value))
else:
if isinstance(value,basestring):
# Case of a python script
......
......@@ -114,12 +114,8 @@ class AtomSelectionWidget(UserDefinitionWidget):
panel = sizerItem.GetWindow()
children = panel.GetChildren()
udName = children[0]
oldSelection = udName.GetStringSelection()
udName.SetItems(uds)
udName.SetStringSelection(oldSelection)
uds.append(udName)
udName = children[0]
uds.append(udName.GetStringSelection())
if not uds:
return None
......
......@@ -83,11 +83,8 @@ class AtomTransmutationWidget(AtomSelectionWidget):
children = panel.GetChildren()
udName = children[0]
element = children[2]
oldSelection = udName.GetStringSelection()
udName.SetItems(uds)
udName.SetStringSelection(oldSelection)
uds.append([udName,element.GetStringSelection])
uds.append([udName.GetStringSelection(),element.GetStringSelection])
if not uds:
return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment