diff options
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 25d5df11d..95b6c211c 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -2,6 +2,7 @@ #include "graphicsview-common.h" #include "../dive.h" +#include "../divelist.h" #include <cmath> #include <QMouseEvent> #include <QDebug> @@ -497,6 +498,7 @@ void DivePlannerGraphics::createDecoStops() diveBg->setBrush(pat); deleteTemporaryDivePlan(diveplan.dp); + delete_single_dive(get_divenr(dive)); } void DivePlannerGraphics::deleteTemporaryDivePlan(divedatapoint* dp) |