Skip to content

Commit 1facaef

Browse files
committedOct 2, 2017
Avoid crashes with relation reference widget
1 parent 82dcc68 commit 1facaef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/editorwidgets/qgsrelationreferencewidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class GUI_EXPORT QgsRelationReferenceWidget : public QWidget
179179
QgsMessageBarItem* mMessageBarItem;
180180
QString mRelationName;
181181
QgsAttributeForm* mReferencedAttributeForm;
182-
QgsVectorLayer* mReferencedLayer;
183-
QgsVectorLayer* mReferencingLayer;
182+
QPointer<QgsVectorLayer> mReferencedLayer;
183+
QPointer<QgsVectorLayer> mReferencingLayer;
184184
QgsAttributeTableModel* mMasterModel;
185185
QgsAttributeTableFilterModel* mFilterModel;
186186
QgsFeatureListModel* mFeatureListModel;

0 commit comments

Comments
 (0)
Please sign in to comment.