From 6ff345731b4ce2b8558010725d0de948e83d18ca Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 9 Dec 2013 21:37:37 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 1 + 1 file changed, 1 insertion(+) 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()