Skip to content
Permalink
Browse files

Merge pull request #6892 from pblottiere/bugfix_attrform

Fixes crash when deleting last field from attribute table
  • Loading branch information
pblottiere committed Apr 30, 2018
2 parents fca5238 + 9ecb0b2 commit 1104721923a43c9370bd319c1adadc4dda78eeb8
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 1104721

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