Skip to content
Permalink
Browse files

Enable link/unlink button by default

  • Loading branch information
m-kuhn committed Sep 21, 2016
1 parent 5f0ade8 commit 1d09d7a13ea942c3037ab7a9c223a821bbee66d5
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/core/qgseditformconfig.h
@@ -275,7 +275,10 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
*/
QgsAttributeEditorRelation( const QString& name, const QString &relationId, QObject *parent )
: QgsAttributeEditorElement( AeTypeRelation, name, parent )
, mRelationId( relationId ) {}
, mRelationId( relationId )
, mShowLinkButton( true )
, mShowUnlinkButton( true )
{}

/**
* Creates a new element which embeds a relation.
@@ -287,7 +290,10 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
QgsAttributeEditorRelation( const QString& name, const QgsRelation& relation, QObject *parent )
: QgsAttributeEditorElement( AeTypeRelation, name, parent )
, mRelationId( relation.id() )
, mRelation( relation ) {}
, mRelation( relation )
, mShowLinkButton( true )
, mShowUnlinkButton( true )
{}

//! Destructor
virtual ~QgsAttributeEditorRelation() {}

0 comments on commit 1d09d7a

Please sign in to comment.