Skip to content

Commit

Permalink
Fixes crash when deleting last field from attribute table
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Apr 30, 2018
1 parent 201f108 commit 9ecb0b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 9ecb0b2

Please sign in to comment.