Skip to content

Commit

Permalink
Autogenerated relation names in dialog instead of ids
Browse files Browse the repository at this point in the history
The autogenerated ids are quite long and this leads that they where very unconfortable to use in the configuration of relation reference in the attribute type widget of layer properties - attribute form. So now the names are used in the combo instead of the ids. This effects only the GUI.

Fix: #17441
  • Loading branch information
signedav authored and m-kuhn committed Nov 14, 2017
1 parent eefcb31 commit ea5ed67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp
Expand Up @@ -47,7 +47,7 @@ QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg( QgsVectorLayer* vl

Q_FOREACH ( const QgsRelation& relation, vl->referencingRelations( fieldIdx ) )
{
mComboRelation->addItem( QString( "%1 (%2)" ).arg( relation.id(), relation.referencedLayerId() ), relation.id() );
mComboRelation->addItem( QString( "%1 (%2)" ).arg( relation.name(), relation.referencedLayerId() ), relation.id() );
if ( relation.referencedLayer() )
{
mExpressionWidget->setField( relation.referencedLayer()->displayExpression() );
Expand Down

0 comments on commit ea5ed67

Please sign in to comment.