Skip to content

Commit

Permalink
fallback reading old config
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Aug 10, 2020
1 parent f140004 commit 4acc35e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgseditformconfig.cpp
Expand Up @@ -635,7 +635,8 @@ QgsAttributeEditorElement *QgsEditFormConfig::attributeEditorElementFromDomEleme
}
else
{
// pre QGIS 3.16 compatibility todo
// pre QGIS 3.16 compatibility - the widgets section is read before
relElement->setForceSuppressFormPopup( widgetConfig( elem.attribute( QStringLiteral( "relation" ) ) ).value( QStringLiteral( "force-suppress-popup" ), false ).toBool() );
}

if ( elem.hasAttribute( QStringLiteral( "cardinality" ) ) )
Expand All @@ -644,7 +645,8 @@ QgsAttributeEditorElement *QgsEditFormConfig::attributeEditorElementFromDomEleme
}
else
{
// pre QGIS 3.16 compatibility todo
// pre QGIS 3.16 compatibility - the widgets section is read before
relElement->setCardinality( widgetConfig( elem.attribute( QStringLiteral( "relation" ) ) ).value( QStringLiteral( "nm-rel" ) ) );
}
newElement = relElement;
}
Expand Down

0 comments on commit 4acc35e

Please sign in to comment.