inasafe
inasafe copied to clipboard
Can not choose layer from disk in impact function wizard
Problem
While testing for InaSAFE 5.0, I found out that I can't choose layer from disk due to unfinished refactoring (most probable). I got this error:
2018-06-13T21:42:47 1 Traceback (most recent call last):
File "/Users/ismailsunni/.qgis2/python/plugins/inasafe/safe/gui/tools/wizard/step_fc25_hazlayer_from_browser.py", line 66, in tvBrowserHazard_selection_changed
'hazard')
File "/Users/ismailsunni/.qgis2/python/plugins/inasafe/safe/gui/tools/wizard/wizard_step_browser.py", line 403, in get_layer_description_from_browser
layer, category, keywords))
File "/Users/ismailsunni/.qgis2/python/plugins/inasafe/safe/gui/tools/wizard/wizard_step_browser.py", line 185, in unsuitable_layer_description_html
imfunc = self.parent.step_fc_function.selected_function()
AttributeError: 'WizardDialog' object has no attribute 'step_fc_function'
Expected Behaviour
It should work properly
Environment
- InaSAFE : 4.4
- QGIS : 2.18
- OS : MacOS
Proposed Solution
Fix the bad code in wizard_step_browser.py