From 3a670f8c3b51456fdf38772cc2fee50dd382fb45 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 27 Dec 2015 07:57:39 -0800 Subject: QML UI: don't show "1 of n" for multiple dive computers This is actually not a change in the QML - it just conditionally compiles out the code when building Subsurface-mobile. Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profile-widget/profilewidget2.cpp') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 3bf147b0f..63ce51f87 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -682,8 +682,10 @@ void ProfileWidget2::plotDive(struct dive *d, bool force) } QString dcText = get_dc_nickname(currentdc->model, currentdc->deviceid); int nr; +#ifndef SUBSURFACE_MOBILE if ((nr = number_of_computers(&displayed_dive)) > 1) dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr); +#endif if (dcText.isEmpty()) dcText = tr("Unknown dive computer"); diveComputerText->setText(dcText); -- cgit v1.2.3-70-g09d2