Planner rebreather mode

Do the switching based on the index rather than the string (which is
translatable!).

Update set-points when turning on/off CCR mode (remeber: the rebreather
mode is stored in two places: the divemode and implicitly in the setpoitns.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2015-01-16 15:05:00 +01:00 committed by Dirk Hohndel
parent 881803441e
commit 0d619d569b
2 changed files with 10 additions and 12 deletions

View file

@ -90,7 +90,7 @@ slots:
void deleteTemporaryPlan();
void loadFromDive(dive *d);
void emitDataChanged();
void setRebreatherMode(QString mode);
void setRebreatherMode(int mode);
signals:
void planCreated();