Ignore:
Timestamp:
Sep 24, 2018 9:15:49 AM (3 years ago)
Author:
rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
2dce1d8
Parents:
712db9e
Message:

Refactored onHelp a bit to allow more encapsulation. SASVIEW-1112

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    rdad086f ree22241  
    202202        Open a local url in the default browser 
    203203        """ 
    204         location = GuiUtils.HELP_DIRECTORY_LOCATION + url 
    205         #WP: Added to handle OSX bundle docs 
    206         if os.path.isdir(location) == False: 
    207             sas_path = os.path.abspath(os.path.dirname(sys.argv[0])) 
    208             location = sas_path+"/"+location 
    209         try: 
    210             webbrowser.open('file://' + os.path.realpath(location)) 
    211         except webbrowser.Error as ex: 
    212             logging.warning("Cannot display help. %s" % ex) 
     204        GuiUtils.showHelp(url) 
    213205 
    214206    def workspace(self): 
Note: See TracChangeset for help on using the changeset viewer.