AIFDR/risk_in_a_box — Issue #71: OK button does not enable for valid selections
Author: uniomni
Created: 2012-02-03 01:36:55+00:00
State: open

The OK button does not enable correctly in the following circumstance:

To reproduce:
Use master branch (git revision e2e696914476c93518a58d5f3a8fef4fb0c923d3)
Use layers form riab_test_data (svn revision 11)

1 cd riab_test_data
2 Start QGis with valid layers: qgis Flood_Current_Depth_Jakarta_geographic.asc Population_Jakarta_geographic.asc
3 Verify this can run (see http://imageshack.us/f/406/validlayers.png and http://imageshack.us/f/846/resulti.png)
4 Now add a population layer without the right keywords to QGis (e.g. glp10ag). As this comes in as the first population layer in the exposure combo, Risk in a Box correctly displays an error message that there is no impact function to match (see http://imageshack.us/f/31/layerwithouttherightkey.png)
5 However, when selecting the correct and valid population layer again, the error remains and the OK button does not enable (http://imageshack.us/f/593/nowvalidlayerdoesnotena.png). Not that the valid impact functions do show up in the function combo.

I suggest this be addressed as part of issue #57