lutraconsulting / qgis-geocat-plugin

Plugin for loading PostGIS layers based on a metadata search
GNU General Public License v2.0
5 stars 1 forks source link

- button (in config) should not initially be shown, clicking it causes traceback #15

Closed mostlyAtNight closed 7 years ago

mostlyAtNight commented 7 years ago

Steps to reproduce:

Remove all custom fields Restart QGIS Open config Click - button

IndexError: list index out of range 
Traceback (most recent call last):
  File "C:/Users/Pete/.qgis2/python/plugins\LayerMetadataSearch\geo_cat_config_dialog.py", line 150, in remove_custom_column
    last_col = s.childGroups()[-1]
IndexError: list index out of range
erpas commented 7 years ago

It is now disabled if no custom column is defined.