mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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>
This commit is contained in:
parent
2b4c7be9d7
commit
6ff345731b
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue