Changeset 4043c96 in sasview


Ignore:
Timestamp:
Sep 30, 2009 9:45:41 PM (15 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:
09ef7d22
Parents:
d40a9cd
Message:

fixed a crashing-bug. Need to look at it tomorrow

File:
1 edited

Legend:

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

    rd40a9cd r4043c96  
    275275            ## the user didn't select dispersity display 
    276276            return  
    277          
     277 
    278278        self._reset_dispersity() 
    279279        # Create the dispersion objects 
     
    559559        self.state.model = self.model.clone()   
    560560         ## save state into 
    561          
     561        self.state.cb1 = self.cb1.GetValue() 
    562562        self._copy_parameters_state(self.parameters, self.state.parameters) 
    563563        self._copy_parameters_state(self.orientation_params_disp, 
     
    642642        self.enable_disp.SetValue(False) 
    643643        self.disable_disp.SetValue(True) 
    644         self.set_dispers_sizer() 
     644        try: 
     645            self.set_dispers_sizer() 
     646        except: 
     647            pass 
    645648        if self.model !=None: 
    646649            try: 
     
    657660            evt = ModelEventbox(model=self.model) 
    658661            wx.PostEvent(self.event_owner, evt)    
     662             
    659663        self.btFit.SetFocus()  
    660664        self.state.enable_disp = self.enable_disp.GetValue() 
    661665        self.state.disable_disp = self.disable_disp.GetValue() 
    662          
     666     
    663667        self.state.structurecombobox = self.structurebox.GetCurrentSelection() 
    664668        self.state.formfactorcombobox = self.formfactorbox.GetCurrentSelection() 
     
    10841088        self._copy_parameters_state(self.fixed_param, self.state.fixed_param) 
    10851089            
    1086         #self.save_current_state()   
     1090        self.save_current_state()   
    10871091        if event !=None: 
    10881092            #self._undo.Enable(True) 
     
    11321136        self._copy_parameters_state(self.fixed_param, self.state.fixed_param) 
    11331137         
    1134         #self.save_current_state() 
     1138        self.save_current_state() 
    11351139        if event !=None: 
    11361140            #self._undo.Enable(True) 
Note: See TracChangeset for help on using the changeset viewer.