New profile: enable switching between dive computers

This was mostly in place, just needed to be hooked up.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-02-11 09:55:14 -08:00
parent 73d6057424
commit d1c4bcf570
4 changed files with 14 additions and 3 deletions

View file

@ -486,6 +486,7 @@ void MainWindow::on_actionPreviousDC_triggered()
{
dc_number--;
ui.InfoWidget->updateDiveInfo(selected_dive);
ui.graphicsView->plotDives(QList<struct dive*>() << (current_dive));
redrawProfile();
}
@ -493,6 +494,7 @@ void MainWindow::on_actionNextDC_triggered()
{
dc_number++;
ui.InfoWidget->updateDiveInfo(selected_dive);
ui.graphicsView->plotDives(QList<struct dive*>() << (current_dive));
redrawProfile();
}