mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fixes crash when deleting last field from attribute table
This commit is contained in:
parent
201f10806a
commit
9ecb0b275e
@ -2011,6 +2011,9 @@ void QgsAttributeForm::ContainerInformation::apply( QgsExpressionContext *expres
|
||||
|
||||
void QgsAttributeForm::updateJoinedFields( const QgsEditorWidgetWrapper &eww )
|
||||
{
|
||||
if ( !eww.layer()->fields().exists( eww.fieldIdx() ) )
|
||||
return;
|
||||
|
||||
QgsFeature formFeature;
|
||||
QgsField field = eww.layer()->fields().field( eww.fieldIdx() );
|
||||
QList<const QgsVectorLayerJoinInfo *> infos = eww.layer()->joinBuffer()->joinsWhereFieldIsId( field );
|
||||
|
Loading…
x
Reference in New Issue
Block a user