Changeset 9f391af in sasview


Ignore:
Timestamp:
Mar 1, 2011 4:35:39 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
342a506
Parents:
856428a
Message:

fix saving state for fitpanel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpanel.py

    r6bbeacd4 r9f391af  
    149149                    page_is_opened = True 
    150150            if not page_is_opened: 
    151                 panel = self.add_fit_page(data=state.data) 
     151                panel = self._manager.add_fit_page(data=state.data) 
    152152                # add data associated to the page created 
    153153                if panel is not None:   
     
    281281         
    282282        page = self.add_empty_page() 
     283        pos = self.GetPageIndex(page) 
    283284        page.id = wx.NewId() 
    284285        page.set_data(data) 
     
    328329        """ 
    329330        #remove hint page 
    330         if selected_page.id == self.hint_page.id: 
     331        if selected_page == self.hint_page: 
    331332            return 
    332333        ## removing sim_page 
     
    368369             
    369370            if selected_page.id == id: 
    370                 del self.opened_pages[type] 
     371                del self.opened_pages[selected_page.id] 
    371372                break  
    372373      
Note: See TracChangeset for help on using the changeset viewer.