From bb3151795188fc5ef53053ce004dc1d1f2de63a1 Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Wed, 6 Jul 2016 22:40:37 +1000 Subject: Planner: update cylinder mixes and MND and MOD when prefs are changed Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- qt-models/cylindermodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models/cylindermodel.cpp') diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 9d85cb661..4d9fe9beb 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -506,6 +506,8 @@ bool CylindersModel::updateBestMixes() gasUpdated = true; } } + /* This slot is called when the bottom pO2 and END preferences are updated, we want to + * emit dataChanged so MOD and MND are refreshed, even if the gas mix hasn't been changed */ emit dataChanged(createIndex(0, 0), createIndex(MAX_CYLINDERS - 1, COLUMNS - 1)); return gasUpdated; } -- cgit v1.2.3-70-g09d2