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 <dirk@hohndel.org>
This commit is contained in:
parent
65f3135a92
commit
a0136a3b8c
@ -876,9 +876,6 @@ void DivePlannerPointsModel::createPlan()
|
||||
char *cache = NULL;
|
||||
tempDive = NULL;
|
||||
|
||||
if (!diveplan.dp)
|
||||
return cancelPlan();
|
||||
|
||||
bool oldRecalc = plannerModel->setRecalc(false);
|
||||
removeDeco();
|
||||
createTemporaryPlan();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user