Changeset 1258aa3 in sasview for sansview/perspectives


Ignore:
Timestamp:
Apr 20, 2011 4:56:07 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:
d4d78c9
Parents:
f7e05b0
Message:

disabled bookmark when there is no data set up

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    rf7e05b0 r1258aa3  
    556556        wx.PostEvent(self.parent.parent, StatusEvent(status = msg )) 
    557557         
    558         #id = wx.NewId() 
    559         #self.popUpMenu.Append(id,name,str(msg)) 
    560         #wx.EVT_MENU(self, id, self.onResetModel) 
     558        id = wx.NewId() 
     559        self.popUpMenu.Append(id,name,str(msg)) 
     560        wx.EVT_MENU(self, id, self.onResetModel) 
    561561        wx.PostEvent(self.parent.parent,  
    562562                     AppendBookmarkEvent(title=name,  
  • sansview/perspectives/fitting/fitpage.py

    r512bbd0 r1258aa3  
    10401040       
    10411041        if self.model != None: 
    1042             self._set_bookmark_flag(True) 
     1042            if self.data != None: 
     1043                self._set_bookmark_flag(True) 
    10431044            #self._set_save_flag(True) 
    10441045            # Reset smearer, model and data 
     
    15831584            self._set_save_flag(False) 
    15841585        else: 
    1585             self._set_bookmark_flag(True) 
     1586            if self.model != None: 
     1587                self._set_bookmark_flag(True) 
    15861588            self._set_save_flag(True) 
    15871589            self._set_preview_flag(True) 
Note: See TracChangeset for help on using the changeset viewer.