mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
de76cb3ebb
commit
3a670f8c3b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue