diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-10-26 13:10:34 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-10-27 20:35:57 -0700 |
commit | f2bbd0c62737fabea58d1454df1aea036f6e774b (patch) | |
tree | b5b46d15ae23adc1058963bf289bf4f44dc080fd /qt-models/diveplannermodel.cpp | |
parent | 02389c95cb59821c15479a6b56251b89dfc57e20 (diff) | |
download | subsurface-f2bbd0c62737fabea58d1454df1aea036f6e774b.tar.gz |
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>
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() |