mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show the dive computer number (if a dive has more than one)
For most users this is no change at all. For the few who download from multiple dive computers this now shows them which of them is the primary dive computer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
eaa4e5948a
commit
419434f494
1 changed files with 5 additions and 1 deletions
|
@ -467,7 +467,11 @@ void ProfileWidget2::plotDives(QList<dive *> dives)
|
|||
event->setVisible(!event->shouldBeHidden());
|
||||
// qDebug() << event->getEvent()->name << "@" << event->getEvent()->time.seconds << "is hidden:" << event->isHidden();
|
||||
}
|
||||
diveComputerText->setText(currentdc->model);
|
||||
QString dcText = currentdc->model;
|
||||
int nr;
|
||||
if ((nr = number_of_computers(current_dive)) > 1)
|
||||
dcText += tr(" (#%1 of %2)").arg(dc_number + 1).arg(nr);
|
||||
diveComputerText->setText(dcText);
|
||||
if (MainWindow::instance()->filesFromCommandLine() && animSpeedBackup != -1) {
|
||||
prefs.animation = animSpeedBackup;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue