Skip to content

Commit

Permalink
Open the correct configuration widget
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Dec 30, 2020
1 parent 19d398e commit 1151a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributeformconfig/qgsattributewidgetedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void QgsAttributeWidgetRelationEditWidget::setRelationEditorConfiguration( const
setCardinalityCombo( QStringLiteral( "%1 (%2)" ).arg( nmrel.referencedLayer()->name(), nmrel.fieldPairs().at( 0 ).referencedField() ), nmrel.id() );
}

int widgetTypeIdx = mWidgetTypeComboBox->findText( config.mRelationWidgetType );
int widgetTypeIdx = mWidgetTypeComboBox->findData( config.mRelationWidgetType );
mWidgetTypeComboBox->setCurrentIndex( widgetTypeIdx >= 0 ? widgetTypeIdx : 0 );

const QString widgetType = mWidgetTypeComboBox->currentData().toString();
Expand Down

0 comments on commit 1151a8f

Please sign in to comment.