mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
bb4bf639c3
commit
935734100f
7 changed files with 20 additions and 20 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue