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 committed Nov 15, 2017
1 parent 2c49631 commit a49ed09769657471a25c2d0ea7f3686b9f7d4c8b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp
@@ -36,7 +36,7 @@ QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg( QgsVectorLayer *vl

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

0 comments on commit a49ed09

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