Skip to content

Commit 5d6ea60

Browse files
committedAug 17, 2018
Avoid crash in gps info widget due to storage of potentially removed layer pointer
(cherry-picked from 19a4357)
1 parent cddbf96 commit 5d6ea60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/gps/qgsgpsinformationwidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class QgsGpsInformationWidget: public QWidget, private Ui::QgsGpsInformationWidg
102102
QList<QgsPointXY> mCaptureList;
103103
FixStatus mLastFixStatus;
104104
QString mDateTimeFormat; // user specified format string in registry (no UI presented)
105-
QgsVectorLayer *mpLastLayer = nullptr;
105+
QPointer< QgsVectorLayer > mpLastLayer;
106106
QFile *mLogFile = nullptr;
107107
QTextStream mLogFileTextStream;
108108
QColor mTrackColor;

0 commit comments

Comments
 (0)
Please sign in to comment.