Skip to content
Permalink
Browse files

Open the correct configuration widget

  • Loading branch information
suricactus committed Dec 30, 2020
1 parent 19d398e commit 1151a8f0fb0f13e688254f6c972290f3fccbb76d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributeformconfig/qgsattributewidgetedit.cpp
@@ -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();

0 comments on commit 1151a8f

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