Skip to content

Commit

Permalink
remove setting of config in the html and qml wrappers since there is …
Browse files Browse the repository at this point in the history
…no info stored in the editFormConfig (and if so, then it would lead to issues, since elementDev->name() is not necessarily unique)
  • Loading branch information
signedav committed Aug 3, 2020
1 parent 4f34b8a commit c0becb4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -2090,7 +2090,6 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt

QgsQmlWidgetWrapper *qmlWrapper = new QgsQmlWidgetWrapper( mLayer, nullptr, this );
qmlWrapper->setQmlCode( elementDef->qmlCode() );
qmlWrapper->setConfig( mLayer->editFormConfig().widgetConfig( elementDef->name() ) );
context.setAttributeFormMode( mMode );
qmlWrapper->setContext( context );

Expand All @@ -2111,8 +2110,6 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
context.setAttributeFormMode( mMode );
htmlWrapper->setHtmlCode( elementDef->htmlCode() );
htmlWrapper->reinitWidget();
htmlWrapper->setConfig( mLayer->editFormConfig().widgetConfig( elementDef->name() ) );

mWidgets.append( htmlWrapper );

newWidgetInfo.widget = htmlWrapper->widget();
Expand Down

0 comments on commit c0becb4

Please sign in to comment.