From 12c33a038f1e2f33b7b0e09e0394684115e630ea Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sun, 5 Feb 2017 10:56:43 +0100 Subject: Mobile: Do not show tankbar for CCR dives If we are showing the setpoint and sensor pO2 we need the space. Signed-off-by: Joakim Bygdell --- profile-widget/profilewidget2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'profile-widget/profilewidget2.cpp') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index df879fbb8..d368f6af7 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -700,6 +700,14 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) #ifndef SUBSURFACE_MOBILE rulerItem->setPlotInfo(plotInfo); #endif + +#ifdef SUBSURFACE_MOBILE + if (currentdc->divemode == CCR) { + tankItem->setVisible(false); + } else { + tankItem->setVisible(prefs.tankbar); + } +#endif tankItem->setData(dataModel, &plotInfo, &displayed_dive); dataModel->emitDataChanged(); -- cgit v1.2.3-70-g09d2