summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-01-11 00:01:15 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-10 17:27:25 -0800
commite219bc70f863eaaa9b81ba5abc240975a128c904 (patch)
tree682d6d981929420bbabd0021e02db3006c72d96f /qt-ui/diveplanner.cpp
parentbfe05b43407c419a32548af20f40e2b9e3bca045 (diff)
downloadsubsurface-e219bc70f863eaaa9b81ba5abc240975a128c904.tar.gz
Refactor dctype -> divemode
... and repair a failed rebase (sorry). Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 57349007c..1b389afdf 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -785,13 +785,13 @@ void DivePlannerPointsModel::setGFLow(const int ghflow)
void DivePlannerPointsModel::setRebreatherMode(QString mode)
{
- qDebug() << mode << "selected, was" << displayed_dive.dc.dctype;
+ qDebug() << mode << "selected, was" << displayed_dive.dc.divemode;
if (mode == "OC")
- displayed_dive.dc.dctype = OC;
+ displayed_dive.dc.divemode = OC;
else if (mode == "pSCR")
- displayed_dive.dc.dctype = PSCR;
+ displayed_dive.dc.divemode = PSCR;
else if (mode == "CCR")
- displayed_dive.dc.dctype = CCR;
+ displayed_dive.dc.divemode = CCR;
plannerModel->emitDataChanged();
}