def on_layer_cbx_currentIndexChanged(self):
     self.selected_layer = \
         QgsMapLayerRegistry.instance().mapLayers().values()[
             self.ui.layer_cbx.currentIndex()]
     reload_attrib_cbx(self.ui.attrib_cbx,
                       self.selected_layer,
                       NUMERIC_FIELD_TYPES)
     if self.ui.attrib_cbx.count():
         self.ok_button.setEnabled(True)
         if self.ui.algorithm_cbx.count():
             self.update_default_fieldname()