diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-01-07 03:11:19 +0100 |
---|---|---|
committer | Subsurface <dirk@subsurface-divelog.org> | 2017-01-06 20:43:23 -0800 |
commit | 935734100f07092800ec4467b88c59a9a4efd572 (patch) | |
tree | 20a3398c4f7bece093928f754a84e975f74f6ffb /qt-models | |
parent | bb4bf639c333bee28d398c3670f52797d726b126 (diff) | |
download | subsurface-935734100f07092800ec4467b88c59a9a4efd572.tar.gz |
Rename prefs.deco_mode to prefs.planner_deco_mode
This is to avoid confusion with planner.display_deco_mode.
When accessing the "current deco mode" use the decoMode()
helper function.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 43e4686ff..792ea822f 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -485,8 +485,8 @@ void DivePlannerPointsModel::setDisplayTransitions(bool value) void DivePlannerPointsModel::setDecoMode(int mode) { - prefs.deco_mode = deco_mode(mode); - emit recreationChanged(mode == int(prefs.deco_mode)); + prefs.planner_deco_mode = deco_mode(mode); + emit recreationChanged(mode == int(prefs.planner_deco_mode)); emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1)); } |