Changeset 1821


Ignore:
Timestamp:
Apr 29, 2015 6:05:07 PM (7 years ago)
Author:
vondreele
Message:

fix to Refine behavior when finished - now recovers last seen data window as before

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r1820 r1821  
    35063506        dlg.CenterOnParent()
    35073507        Rw = 100.00
     3508        oldId =  self.PatternTree.GetSelection()        #retain current selection
     3509        parentName = ''
     3510        oldName = self.PatternTree.GetItemText(oldId)
     3511        parentId = self.PatternTree.GetItemParent(oldId)
     3512        if parentId:
     3513            parentName = self.PatternTree.GetItemText(parentId)     #find the current data tree name
    35083514        try:
    35093515            OK,Msg = G2stMn.Refine(self.GSASprojectfile,dlg)
     
    35123518            dlg.Destroy()
    35133519            wx.Yield()
    3514         oldId =  self.PatternTree.GetSelection()        #retain current selection
    3515         parentName = ''
    3516         if type(oldId) is int:  #nothing had been selected!
    3517             oldName = self.PatternTree.GetItemText(oldId)
    3518             parentId = self.PatternTree.GetItemParent(oldId)
    3519             if parentId:
    3520                 parentName = self.PatternTree.GetItemText(parentId)     #find the current data tree name
    35213520        if OK:
    35223521            Rw = Msg
Note: See TracChangeset for help on using the changeset viewer.