diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-09 20:02:28 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-09 20:11:12 +0100 |
commit | 35b092433597090da39c9f6eea209b12e809e6f4 (patch) | |
tree | 616a8108517e619bf1b75fa1067a29405e682640 /qt-ui/diveplanner.cpp | |
parent | 5cb47c3de80e7437ab31aed1e176b99ca844da6d (diff) | |
download | subsurface-35b092433597090da39c9f6eea209b12e809e6f4.tar.gz |
Fix potential crash
Initialize stagingDive to NULL, so we know that we will bail in
createTemporaryPlan, when the initial settingsChanged is fired.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 932c6366a..8e2cc0e2d 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1117,7 +1117,7 @@ int DivePlannerPointsModel::rowCount(const QModelIndex& parent) const return divepoints.count(); } -DivePlannerPointsModel::DivePlannerPointsModel(QObject* parent): QAbstractTableModel(parent), mode(NOTHING) +DivePlannerPointsModel::DivePlannerPointsModel(QObject* parent): QAbstractTableModel(parent), mode(NOTHING), stagingDive(NULL) { } |