Ignore:
Timestamp:
Apr 22, 2011 11:29:20 AM (14 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
270e240
Parents:
cefb3fb
Message:

This fixes the problems w/ status file open/close

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rcefb3fb r04295ea  
    169169        set state when loading it from a .inv/.svs file 
    170170        """ 
     171         
    171172        if state == None and data == None: 
    172173            self.state = IState() 
    173174        elif state == None or data == None: return 
    174175        else: 
     176            new_state = copy.deepcopy(state) 
    175177            self.new_state = True 
    176178            if not self.set_data(data): 
    177179                return 
    178             self.state = state  
     180 
     181            self.state = new_state  
    179182            self.state.file = data.name    
    180183 
     
    188191            self.bookmark_num = len(self.state.bookmark_list) 
    189192            total_bookmark_num = self.bookmark_num + 1 
     193 
    190194            for ind in range(1,total_bookmark_num): 
    191195                #bookmark_num = ind 
     
    196200                self.popUpMenu.Append(id,name,str('')) 
    197201                wx.EVT_MENU(self, id, self._back_to_bookmark)  
    198  
    199202                wx.PostEvent(self.parent, AppendBookmarkEvent(title=name,  
    200203                                          hint='', 
Note: See TracChangeset for help on using the changeset viewer.