[PATCH 1/2] Planner: populate gaslist for initial simple dive

Rick Walsh rickmwalsh at gmail.com
Tue Oct 25 19:10:34 PDT 2016


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 at gmail.com>
---
 qt-models/diveplannermodel.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp
index 10f2d5f..27797d1 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()
-- 
2.7.4



More information about the subsurface mailing list