diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-30 15:47:42 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-30 15:47:42 -0700 |
commit | a0136a3b8c7c20e2d28a6757d7356bbec6154a6c (patch) | |
tree | 441164dd4dac177aa7e7225a5e986d6dee5948a4 /qt-ui/diveplanner.cpp | |
parent | 65f3135a92cb9bb33c9870105334ca458e1f151d (diff) | |
download | subsurface-a0136a3b8c7c20e2d28a6757d7356bbec6154a6c.tar.gz |
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>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r-- | qt-ui/diveplanner.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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(); |