Planner: update cylinder mixes and MND and MOD when prefs are changed
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -38,13 +38,13 @@ public:
|
||||
void updateDive();
|
||||
void copyFromDive(struct dive *d);
|
||||
void updateDecoDepths(pressure_t olddecopo2);
|
||||
bool updateBestMixes();
|
||||
cylinder_t *cylinderAt(const QModelIndex &index);
|
||||
bool changed;
|
||||
|
||||
public
|
||||
slots:
|
||||
void remove(const QModelIndex &index);
|
||||
bool updateBestMixes();
|
||||
|
||||
private:
|
||||
int rows;
|
||||
|
||||
Reference in New Issue
Block a user