Planner: initialize drop_stone_mode as false
Otherwise it could be used uninitialized when adding dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5fca5f421d
commit
5f76185d37
@ -626,7 +626,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), drop_stone_mode(false)
|
||||
{
|
||||
memset(&diveplan, 0, sizeof(diveplan));
|
||||
memset(&backupDive, 0, sizeof(backupDive));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user