Skip to content
Permalink
Browse files

Fixes crash when deleting last field from attribute table

  • Loading branch information
pblottiere committed Apr 30, 2018
1 parent 201f108 commit 9ecb0b275e3abe319c6f69c9c9669ca12d177891
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsattributeform.cpp
@@ -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 );

0 comments on commit 9ecb0b2

Please sign in to comment.
You can’t perform that action at this time.