From f2bbd0c62737fabea58d1454df1aea036f6e774b Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Wed, 26 Oct 2016 13:10:34 +1100 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 10f2d5f52..27797d148 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -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() -- cgit v1.2.3-70-g09d2