Skip to content

Commit

Permalink
Avoid crash in gps info widget due to storage of potentially removed …
Browse files Browse the repository at this point in the history
…layer pointer
  • Loading branch information
nyalldawson committed Aug 17, 2018
1 parent 56b6ebd commit 19a4357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/gps/qgsgpsinformationwidget.h
Expand Up @@ -109,7 +109,7 @@ class QgsGpsInformationWidget: public QWidget, private Ui::QgsGpsInformationWidg
QList<QgsPointXY> mCaptureList;
FixStatus mLastFixStatus;
QString mDateTimeFormat; // user specified format string in registry (no UI presented)
QgsVectorLayer *mpLastLayer = nullptr;
QPointer< QgsVectorLayer > mpLastLayer;
QFile *mLogFile = nullptr;
QTextStream mLogFileTextStream;
QIntValidator *mAcquisitionIntValidator = nullptr;
Expand Down

0 comments on commit 19a4357

Please sign in to comment.