diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-27 07:57:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-27 10:06:32 -0800 |
commit | 3a670f8c3b51456fdf38772cc2fee50dd382fb45 (patch) | |
tree | 78dce8a02c987a249a01a6391936f158e0a30b20 /profile-widget/profilewidget2.cpp | |
parent | de76cb3ebb819f5be78965a78695c503018e4cdf (diff) | |
download | subsurface-3a670f8c3b51456fdf38772cc2fee50dd382fb45.tar.gz |
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>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |