Planner: populate gaslist for initial simple dive

Call GasSelectionModel::instance()->repopulate() when creating the initial
simple dive. Without this call, the gas selection dropdown list does not work
in the DivePLannerPointsModel table until the cylinders table has been edited.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rick Walsh 2016-10-26 13:10:34 +11:00 committed by Dirk Hohndel
parent 02389c95cb
commit f2bbd0c627

View file

@ -42,6 +42,7 @@ void DivePlannerPointsModel::createSimpleDive()
addStop(M_OR_FT(5, 15), 45 * 60, 0, cylinderid, true);
}
updateMaxDepth();
GasSelectionModel::instance()->repopulate();
}
void DivePlannerPointsModel::setupStartTime()