Skip to content

Commit a49ed09

Browse files
committedNov 15, 2017
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
1 parent 2c49631 commit a49ed09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ QgsRelationReferenceConfigDlg::QgsRelationReferenceConfigDlg( QgsVectorLayer *vl
3636

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

0 commit comments

Comments
 (0)
Please sign in to comment.