From 935734100f07092800ec4467b88c59a9a4efd572 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 7 Jan 2017 03:11:19 +0100 Subject: 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 --- qt-models/diveplannermodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-models') 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)); } -- cgit v1.2.3-70-g09d2