Merge pull request #581 from acq4/colormap-save

Fix colormapwidget saveState
This commit is contained in:
Luke Campagnola 2017-10-04 09:25:06 -07:00 committed by GitHub
commit bf0ac878d8

View File

@ -152,7 +152,7 @@ class ColorMapParameter(ptree.types.GroupParameter):
def restoreState(self, state):
if 'fields' in state:
self.setFields(state['fields'])
for itemState in state['items']:
for name, itemState in state['items'].items():
item = self.addNew(itemState['field'])
item.restoreState(itemState)