Changeset ff36f31 in sasview


Ignore:
Timestamp:
Apr 13, 2009 8:50:05 PM (16 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:
bffc2ad
Parents:
fb8daaaf
Message:

close and reopen model page

File:
1 edited

Legend:

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

    ra074145 rff36f31  
    114114            fitproblem = selected_page.model.clone() 
    115115            self.model_page = None 
     116            self.count =0 
    116117            ## page on menu 
    117118            self.manager._add_page_onmenu(page_name, fitproblem) 
     
    229230        """ 
    230231        if topmenu==True: 
    231             if not page_title in self.fit_page_name.keys()or reset==True: 
     232            ##first time to open model page 
     233            if self.count==0 : 
     234                #if not page_title in self.list_fitpage_name : 
    232235                self._help_add_model_page(model=model, page_title=page_title, 
    233236                                qmin=qmin, qmax=qmax, npts=npts, reset=reset) 
     237                self.count +=1 
    234238            else: 
    235239                self.model_page.select_model(model, page_title) 
Note: See TracChangeset for help on using the changeset viewer.