From a0136a3b8c7c20e2d28a6757d7356bbec6154a6c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 30 May 2014 15:47:42 -0700 Subject: Planner: remove check for empty diveplan This was introduced in commit fc1336107930 ("Don't crash if we try to save a empty plan") - but it doesn't seem to make any sense. It is perfectly reasonable for the diveplan to have no datapoints at this spot - we are just about to call createTemporaryPlan() which will fill those datapoints from the mode. Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 0d5b79edd..76f81961f 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -876,9 +876,6 @@ void DivePlannerPointsModel::createPlan() char *cache = NULL; tempDive = NULL; - if (!diveplan.dp) - return cancelPlan(); - bool oldRecalc = plannerModel->setRecalc(false); removeDeco(); createTemporaryPlan(); -- cgit v1.2.3-70-g09d2