KelSolaar / sIBL_GUI

sIBL_GUI - HDRI Lighting with Smart IBL.
http://www.hdrlabs.com/
GNU General Public License v3.0
27 stars 6 forks source link

Fix "templatesOutliner" Component exception when selected Template has no help file. #172

Closed KelSolaar closed 11 years ago

KelSolaar commented 11 years ago
Traceback (most recent call last):
  File "/Users/kelsolaar/Documents/Development/sIBL_GUI/bin/sIBL_GUI", line 57, in <module>
    main()
  File "/Users/kelsolaar/Documents/Development/sIBL_GUI/sibl_gui/launcher.py", line 309, in main
    ("core.iblSetsOutliner",))
  File "/Users/kelsolaar/Documents/Development/VirtualEnv/HDRLabs/lib/python2.7/site-packages/umbra/engine.py", line 1864, in run
    return sys.exit(RuntimeGlobals.application.exec_())
  File "/Users/kelsolaar/Documents/Development/sIBL_GUI/sibl_gui/components/core/templatesOutliner/templatesOutliner.py", line 1183, in __view_selectionModel__selectionChanged
    QUrl.fromLocalFile(template.helpFile).toString()))
TypeError: QUrl.fromLocalFile(QString): argument 1 has unexpected type 'NoneType'