diff options
author | Anton Lundin <glance@acc.umu.se> | 2013-12-09 21:37:37 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-12-09 21:40:12 +0100 |
commit | 6ff345731b4ce2b8558010725d0de948e83d18ca (patch) | |
tree | 7eabf3684fd914fd609b4c332450daa68c6502e6 | |
parent | 2b4c7be9d7f17e1c2237a28d9062b5c6fa9f7b08 (diff) | |
download | subsurface-6ff345731b4ce2b8558010725d0de948e83d18ca.tar.gz |
Fix another potential crash
Initialize diveplan.dp to NULL, so we know that we will bail in
drawProfile, when the initial settingsChanged is fired.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/diveplanner.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 8e2cc0e2d..c5ca7f74c 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1119,6 +1119,7 @@ int DivePlannerPointsModel::rowCount(const QModelIndex& parent) const DivePlannerPointsModel::DivePlannerPointsModel(QObject* parent): QAbstractTableModel(parent), mode(NOTHING), stagingDive(NULL) { + diveplan.dp = NULL; } DivePlannerPointsModel* DivePlannerPointsModel::instance() |