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

(cherry-picked from 19a4357)
  • Loading branch information
nyalldawson committed Aug 17, 2018
1 parent cddbf96 commit 5d6ea60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/gps/qgsgpsinformationwidget.h
Expand Up @@ -102,7 +102,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;
QColor mTrackColor;
Expand Down

0 comments on commit 5d6ea60

Please sign in to comment.