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 <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-27 07:57:39 -08:00
parent de76cb3ebb
commit 3a670f8c3b

View file

@ -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);