Changeset 1c95d15 in sasview


Ignore:
Timestamp:
Mar 30, 2011 1:30:01 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:
3450e7f
Parents:
73c200a
Message:

check if the toolbar is created before trying to update it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r6d727ae r1c95d15  
    217217            self.load_from_cmd(self._input_file) 
    218218        except: 
    219             pass 
     219            raise 
     220            msg = "%s Cannot load file %s\n" %(str(APPLICATION_NAME),  
     221                                             str(self._input_file)) 
     222            msg += str(sys.exc_value) + '\n' 
     223            print msg 
    220224        self.post_init() 
    221225        self.Show(True) 
     
    612616        application_name = 'No Selected Application' 
    613617        panel_name = 'No Panel on Focus' 
    614         self._toolbar.update_toolbar(self.panel_on_focus) 
     618        if self._toolbar is not None: 
     619            self._toolbar.update_toolbar(self.panel_on_focus) 
    615620        if self._current_perspective is not None: 
    616621            application_name = self._current_perspective.sub_menu 
Note: See TracChangeset for help on using the changeset viewer.