Ignore:
Timestamp:
Apr 20, 2011 8:47:11 PM (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:
d38d0042
Parents:
2a62d5c
Message:

disabled right-click book mark when no data was set yet

File:
1 edited

Legend:

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

    r1258aa3 r2657df9  
    10231023        if self.model is None: 
    10241024            self._set_bookmark_flag(False) 
     1025            self._keep.Enable(False) 
    10251026            self._set_save_flag(False) 
    10261027        self.enable_disp.SetValue(False) 
     
    10421043            if self.data != None: 
    10431044                self._set_bookmark_flag(True) 
     1045                self._keep.Enable(True) 
    10441046            #self._set_save_flag(True) 
    10451047            # Reset smearer, model and data 
     
    15821584            data_name = "" 
    15831585            self._set_bookmark_flag(False) 
     1586            self._keep.Enable(False) 
    15841587            self._set_save_flag(False) 
    15851588        else: 
    15861589            if self.model != None: 
    15871590                self._set_bookmark_flag(True) 
     1591                self._keep.Enable(True) 
    15881592            self._set_save_flag(True) 
    15891593            self._set_preview_flag(True) 
Note: See TracChangeset for help on using the changeset viewer.