@@ -275,7 +275,10 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
275
275
*/
276
276
QgsAttributeEditorRelation ( const QString& name, const QString &relationId, QObject *parent )
277
277
: QgsAttributeEditorElement( AeTypeRelation, name, parent )
278
- , mRelationId ( relationId ) {}
278
+ , mRelationId ( relationId )
279
+ , mShowLinkButton ( true )
280
+ , mShowUnlinkButton ( true )
281
+ {}
279
282
280
283
/* *
281
284
* Creates a new element which embeds a relation.
@@ -287,7 +290,10 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement
287
290
QgsAttributeEditorRelation ( const QString& name, const QgsRelation& relation, QObject *parent )
288
291
: QgsAttributeEditorElement( AeTypeRelation, name, parent )
289
292
, mRelationId ( relation.id() )
290
- , mRelation ( relation ) {}
293
+ , mRelation ( relation )
294
+ , mShowLinkButton ( true )
295
+ , mShowUnlinkButton ( true )
296
+ {}
291
297
292
298
// ! Destructor
293
299
virtual ~QgsAttributeEditorRelation () {}
0 commit comments