Skip to content
Permalink
Browse files

Autogenerated relation names in dialog instead of ids

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 13, 2017
1 parent eefcb31 commit ea5ed674cb9ef2a3569e582ec96511adfe0711bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp
@@ -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() );

0 comments on commit ea5ed67

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