summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-08 02:23:37 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-08 20:58:09 -0800
commit98e8a04d01caa90e5384654fb247b2778f6760c9 (patch)
tree328174260c99b92121d1ccc788de07f07523e02c /profile-widget/profilewidget2.cpp
parent16320bb580798b1a61813409795f27544861526e (diff)
downloadsubsurface-98e8a04d01caa90e5384654fb247b2778f6760c9.tar.gz
Silence warnings in Profilewidget2
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r--profile-widget/profilewidget2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 38276b235..627e5c40a 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -605,9 +605,9 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
currentdc = fake_dc(currentdc, false);
}
+#ifndef SUBSURFACE_MOBILE
bool setpointflag = (currentdc->divemode == CCR) && prefs.pp_graphs.po2 && current_dive;
bool sensorflag = setpointflag && prefs.show_ccr_sensors;
-#ifndef SUBSURFACE_MOBILE
o2SetpointGasItem->setVisible(setpointflag && prefs.show_ccr_setpoint);
ccrsensor1GasItem->setVisible(sensorflag);
ccrsensor2GasItem->setVisible(sensorflag && (currentdc->no_o2sensors > 1));
@@ -723,8 +723,8 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
event->setVisible(!event->shouldBeHidden());
}
QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid);
- int nr;
#ifndef SUBSURFACE_MOBILE
+ int nr;
if ((nr = number_of_computers(&displayed_dive)) > 1)
dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr);
#endif