Ignore:
Timestamp:
May 7, 2018 10:36:28 AM (4 years ago)
Author:
vondreele
Message:

fix seq ref test if new open of G2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r3373 r3375  
    559559        an empty list if a standard (non-sequential) refinement.
    560560        '''
    561         controls = self.GPXtree.GetItemPyData(GetGPXtreeItemId(self,self.root, 'Controls'))
    562         return controls.get('Seq Data',[])
     561        cId = GetGPXtreeItemId(self,self.root, 'Controls')
     562        if cId:
     563            controls = self.GPXtree.GetItemPyData(cId)
     564            return controls.get('Seq Data',[])
     565        else:
     566            return None
    563567       
    564568    def EnableSeqRefineMenu(self):
Note: See TracChangeset for help on using the changeset viewer.