diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-05 06:32:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-05 06:32:23 -0700 |
commit | 896b7a5e74b4dad8c726b9983f56776bf9995294 (patch) | |
tree | ebbae19432798e5358fbf5c8d31d16dd88ea29de /qt-models/diveplannermodel.cpp | |
parent | 74e295698629f27178abac7fee0ac61fc80fc63d (diff) | |
parent | ddfd046c8d0efe3bebc5c14b3d53e6d39eabe217 (diff) | |
download | subsurface-896b7a5e74b4dad8c726b9983f56776bf9995294.tar.gz |
Merge branch 'new-vpm' of https://github.com/Slagvi/subsurface
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index adbcdba9a..e28b4d146 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -449,10 +449,10 @@ void DivePlannerPointsModel::setDisplayTransitions(bool value) emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS - 1)); } -void DivePlannerPointsModel::setRecreationalMode(bool value) +void DivePlannerPointsModel::setDecoMode(int mode) { - prefs.recreational_mode = value; - emit recreationChanged(value); + prefs.deco_mode = deco_mode(mode); + emit recreationChanged(mode == int(RECREATIONAL)); emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1)); } |