Planner: remove check for empty diveplan

This was introduced in commit fc13361079 ("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:
Dirk Hohndel 2014-05-30 15:47:42 -07:00
parent 65f3135a92
commit a0136a3b8c

View file

@ -876,9 +876,6 @@ void DivePlannerPointsModel::createPlan()
char *cache = NULL;
tempDive = NULL;
if (!diveplan.dp)
return cancelPlan();
bool oldRecalc = plannerModel->setRecalc(false);
removeDeco();
createTemporaryPlan();