summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 21:37:47 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-03 21:37:47 -0700
commit5f76185d376624b3713e35ae26284163c0a0cbbf (patch)
tree4e0c2d20dc293746a5a3e4ab8bc1b55928a25e98 /qt-ui/diveplanner.cpp
parent5fca5f421d72e6a618e012c7ce195852ed539700 (diff)
downloadsubsurface-5f76185d376624b3713e35ae26284163c0a0cbbf.tar.gz
Planner: initialize drop_stone_mode as false
Otherwise it could be used uninitialized when adding dives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index e07d75cac..78bcff19d 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -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));